(module: Module)
| 22 | } |
| 23 | |
| 24 | fn argon2id_run(module: Module) -> Result<()> { |
| 25 | let mut store = Store::default(); |
| 26 | let instance = ModuleInstance::instantiate(&mut store, &module, None)?; |
| 27 | let argon2 = instance.func::<(i32, i32, i32), i32>(&store, "argon2id")?; |
| 28 | argon2.call(&mut store, (1000, 2, 1))?; |
| 29 | Ok(()) |
| 30 | } |
| 31 | |
| 32 | fn criterion_benchmark(c: &mut Criterion) { |
| 33 | let module = argon2id_parse().expect("argon2id_parse"); |
no test coverage detected