cargo-wasi icon indicating copy to clipboard operation
cargo-wasi copied to clipboard

A lightweight Cargo subcommand to build Rust code for the `wasm32-wasi` target

Results 27 cargo-wasi issues
Sort by recently updated
recently updated
newest added

`cargo wasi run -- --dir=.` currently fails, but it's pretty close to working. I found out that after removing `arg("--")` the above command succeeds. Is it here intentionally? https://github.com/bytecodealliance/cargo-wasi/blob/8d1ed3165b2671e9fa791e4e24bcdd5cbf955cf8/src/lib.rs#L180-L183

This pr adds the ability to pass arguments to runtime using `--runtime-args` flag. At the moment I made a naive implementation of `split_args` function to separate arguments intended for binary...

I was trying to build parts of the `rustc` using `cargo wasi` and found that `librustc_expand` causes `wasm-opt` to crash. I filed an issue https://github.com/WebAssembly/binaryen/issues/2821 but it seems that the...

The cargo-wasi experience will depend heavily on the versions of the tools invoked (in addition to the version of cargo-wasi itself), and as mentioned in the documentation, wasm-opt in particular...

If this is packaged elsewhere the update-check will want to be disabled!

Currently `wasm-opt` is run like so: * If `WASM_OPT` is set, run that * Otherwise, download a precompiled binary * If no precompiled binary exists, error This fails to handle...

This tool was written quite some time ago and quite a lot has changed in the meantime. When this tool was first written the component model didn't exist and the...

version OS:Macos rustc: 1.71.0-nightly cargo: cargo 1.71.0-nightly cargo wasi: cargo-wasi 0.1.28 ![image](https://github.com/bytecodealliance/cargo-wasi/assets/7162438/f481b583-c8e5-43eb-8744-d5b9bd803c8f) I follow the tutorial step by step, but I got the error above and it is ok on...

I have a project encountering an error when trying running `wasm-bindgen`to build. I can get Hello World building just fine with `cargo wasi`, so I suspect something about this particular...

Demo repo here: https://github.com/remixlabs/wasm-opt-bug. As far as I can tell, setting `wasm-opt = false` in `Cargo.toml` as [described here](https://bytecodealliance.github.io/cargo-wasi/config.html) works for a standalone package, but not for a workspace package....