How do I use a C library in a Rust library compiled to WebAssembly?
TL;DR: Jump to “New week, new adventures” in order to get “Hello from C and Rust!” The nice way would be creating a WASM library and passing it to the linker. rustc has an option for that (and there seem to be source-code directives too): rustc <yourcode.rs> –target wasm32-unknown-unknown –crate-type=cdylib -C link-arg=<library.wasm> The trick is … Read more