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

A Cargo subcommand for creating WebAssembly components based on the component model proposal.

Results 59 cargo-component issues
Sort by recently updated
recently updated
newest added

Recently I started experiencing an error when I run `cargo comonent build`. I'm sorry, but I can't figure out what's causing it or provide a minimal example. I'm hoping you...

I've had this gripe for a while: I keep getting "dev: chore: publish binaries (#161)" notifications when i really only wanted to subscribe to the actual releases/prereleases. ![image](https://github.com/bytecodealliance/cargo-component/assets/61068799/017ced0a-f9c3-43d5-8cbf-66cab546145d) ![image](https://github.com/bytecodealliance/cargo-component/assets/61068799/059f63af-f8ac-4e59-89c9-56768e249860) I...

This would make running `wasi:http` components easier. Currently users have to set `CARGO_TARGET_WASM32_WASI_RUNNER` environment variable to get it to work: ``` CARGO_TARGET_WASM32_WASI_RUNNER="wasmtime serve" cargo component run ```

The layout of the cargo-component Cargo.toml configuration needs to be documented preferably with the most common configuration items called out in the README.

This implements a `wit pull` subcommand which can be used to update local e.g. `wit/deps/*.wit` from a registry. ```console $ wit pull wasi:io --create-dirs Resolving package wasi:io Downloaded release wasi:[email protected]...

I have a workspace that has some components within it so I am using `cargo component check --workspace` to check that all of the workspace members are working. However, one...

This patch reads the project's Cargo configuration and uses the build target specified in it. This ensures that `cargo component build` will respect the target configuration in the `.cargo/config.toml` file...

I've been working on a number of projects which just directly pull the [`wasi`](https://docs.rs/wasi/latest/wasi/) crate, but don't do anything with a local `wit/` directory. This produces a `src/bindings.rs` file, despite...

This patch implements the proposal in https://github.com/bytecodealliance/cargo-component/issues/315, moving the generated files into the `generated` subdirectory. This change introduces a breaking change: the module name of the automatically generated component bindings...