文件名称:rust-wasm-hello-world:WebAssembly编译的Rust和JavaScript之间互操作的入门示例
文件大小:4KB
文件格式:ZIP
更新时间:2024-06-06 11:57:55
javascript rust wasm interoperability Rust
锈病你好世界 rustup update rustup toolchain install nightly rustup target add wasm32-unknown-unknown --toolchain nightly cargo +nightly build --target wasm32-unknown-unknown --release wasm-gc target/wasm32-unknown-unknown/release/hello_world.wasm -o hello_world.gc.wasm
【文件预览】:
rust-wasm-hello-world-master
----.gitignore(38B)
----src()
--------lib.rs(3KB)
----Cargo.toml(199B)
----README.md(574B)
----index.html(3KB)