webassembly tag

2 questions


2 answers
143 views
0
I want to get random values in wasm

I get an error when I compile into WebAssembly in Rust.//rustexternal rate rand;userland::Rng;US>fnmain(){ let secret_number = land::thread_rng().gen_range(1,101); secret_number;}//toml[package]name =...

2 years ago

1 answers
117 views
0
I want the target family to control whether to grant the #[wasm_bindgen] attribute in Rust.

I would like to share the domain(entity) logic with the code cli and wasm in Rust.However, since we have to give #[wasm_bindgen] to the wasm function, we control which functions are generated by wheth...

2 years ago

© 2024 OneMinuteCode. All rights reserved.