cargo-component
cargo-component copied to clipboard
A Cargo subcommand for creating WebAssembly components based on the component model proposal.
Should generated files be in the `.gitignore`? Generally preferred for generated files. Currently, `cargo component build` needs to run before subsequent other `cargo` commands can run, like `cargo clippy` and...
I am just getting started with components, I and find it quite cumbersome to import other components. Let me try to illustrate my problem. I am creating a component, depending...
Heres an example of what ive tried. ``` [package.metadata.component] package = "hotswap:salutation" [package.metadata.component.target] path = "../../wit/salutation" world = "app" [package.metadata.component.target.dependencies] "hotswap:salutation" = { path = "../../wit/salutation", world = "user" }...
relevent upstream work: https://github.com/bytecodealliance/wasm-tools/pull/1577 https://github.com/bytecodealliance/wit-bindgen/pull/978 It seems like the latest research of `cargo-component` does not support multi-packages in WITs. ```shell Caused by: 0: failed to parse local target from directory...
`cargo component build` fails to compile Rust libraries with `[no_std]` flags because it cannot resolve the `env` import interface: ``` error: failed to decode world from module Caused by: 0:...
The version in the project and the version the binding create are off: ``` cargo component --version cargo-component-component 0.15.0 cargo component new --lib test-version cd test-version cat Cargo.toml [package] name...
`cargo component serve` does not show in `cargo component --help` and this is because `serve` isn't a directly supported `cargo-component` command, like: https://github.com/bytecodealliance/cargo-component/blob/50634428915707b34b49bebe85efb48ca82b27ca/src/bin/cargo-component.rs#L67-L76 And, instead, it is a `cargo` command...
As a user of Zed, it's annoying having to constantly opt out of VScode metadata. Personally I think platform or user specific details should be opt in, not opt out....
Hello, I'm trying to build a rust program into wasm. My rust program compiles some C code and invokes it via `extern`/ffi. When I compile this program i'm getting the...