()
| 177 | } |
| 178 | |
| 179 | fn argon2id() -> Result<()> { |
| 180 | let module = tinywasm::parse_file("./examples/rust/out/argon2id.opt.wasm")?; |
| 181 | let mut store = Store::default(); |
| 182 | |
| 183 | let instance = ModuleInstance::instantiate(&mut store, &module, None)?; |
| 184 | let argon2id = instance.func::<(i32, i32, i32), i32>(&store, "argon2id")?; |
| 185 | argon2id.call(&mut store, (1000, 2, 1))?; |
| 186 | |
| 187 | Ok(()) |
| 188 | } |
| 189 | |
| 190 | #[cfg(test)] |
| 191 | mod tests { |