MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / argon2id

Function argon2id

examples/wasm-rust.rs:179–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177}
178
179fn 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)]
191mod tests {

Callers 2

mainFunction · 0.70
test_argon2idFunction · 0.70

Calls 2

parse_fileFunction · 0.85
callMethod · 0.80

Tested by 1

test_argon2idFunction · 0.56