Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo component does not obey .cargo/config.toml #364

Open
oovm opened this issue Dec 22, 2024 · 1 comment
Open

cargo component does not obey .cargo/config.toml #364

oovm opened this issue Dec 22, 2024 · 1 comment

Comments

@oovm
Copy link

oovm commented Dec 22, 2024

I use .cargo/config.toml to control the compilation of workspace.

# .cargo/config.toml
[build]
target = "wasm32-wasip2"

But cargo component build still generates wasm32-wasip1

cargo-component-component 0.19.0
@sunfishcode
Copy link
Member

cargo component itself uses the Rust wasm32-wasip1 target to produce core Wasm modules, and applies the component adapter to produce Wasm components. It doesn't currently work with the wasm32-wasip2 target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants