|new 0.1.14||Jul 2, 2022|
|0.1.13||Jul 2, 2022|
|0.1.11||Jun 25, 2022|
|0.1.3||May 26, 2022|
#145 in Cargo plugins
203 downloads per month
To install this Cargo subcommand, first you'll want to install Rust and then you'll execute:
$ cargo install cargo-wasix
After that you can verify it works via:
$ cargo wasix --version
cargo wasix subcommand is a thin wrapper around
providing optimized defaults for the
wasm64-wasi target. Using
looks very similar to using
cargo wasix build— build your code in debug mode for the wasix target.
cargo wasix build --release— build the optimized version of your
cargo wasix run— execute a binary.
cargo wasix test— run your tests in
cargo wasix bench— run your benchmarks in
In general, if you'd otherwise execute
cargo foo --flag you can likely execute
cargo wasix foo --flag and everything will "just work" for the
To give it a spin yourself, try out the hello-world versions of programs!
$ cargo new wasix-hello-world Created binary (application) `wasix-hello-world` package $ cd wasix-hello-world $ cargo wasix run Compiling wasix-hello-world v0.1.0 (/code/wasix-hello-world) Finished dev [unoptimized + debuginfo] target(s) in 0.15s Running `cargo-wasix target/wasm64-wasi/debug/wasix-hello-world.wasm` Running `target/wasm64-wasi/debug/wasix-hello-world.wasm` Hello, world!
Or a library with some tests:
$ cargo new wasix-hello-world --lib Created library `wasix-hello-world` package $ cd wasix-hello-world $ cargo wasix test Compiling wasix-hello-world v0.1.0 (/code/wasix-hello-world) Finished dev [unoptimized + debuginfo] target(s) in 0.19s Running target/wasm64-wasi/debug/deps/wasix_hello_world-9aa88657c21196a1.wasm Running `/code/wasix-hello-world/target/wasm64-wasi/debug/deps/wasix_hello_world-9aa88657c21196a1.wasm` running 1 test test tests::it_works ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
This project is license under the Apache 2.0 license with the LLVM exception. See [LICENSE] for more details.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.