Open
Description
🐛 Bug description
Describe your issue in detail.
error: the argument '--release' cannot be used with '--profile <PROFILE-NAME>'
🤔 Expected Behavior
What should have happened?
$ wasm-pack build --profile x-release --verbose
(No error)
👟 Steps to reproduce
Clear steps describing how to reproduce the issue, including commands and flags run. If you are seeing an error, please include the full error message and stack trace.
$ wasm-pack build --profile x-release --verbose
[INFO]: 🎯 Checking for the Wasm target...
[INFO]: 🌀 Compiling to Wasm...
error: the argument '--release' cannot be used with '--profile <PROFILE-NAME>'
Usage: cargo build --lib --release --target [<TRIPLE>] --verbose...
For more information, try '--help'.
Error: Compiling your crate to WebAssembly failed
Caused by: Compiling your crate to WebAssembly failed
Caused by: failed to execute `cargo build`: exited with exit status: 1
full command: cd "/path/to/project" && "cargo" "build" "--lib" "--release" "--target" "wasm32-unknown-unknown" "--profile" "x-release" "--verbose"
...
🌍 Your environment
Include the relevant details of your environment.
wasm-pack version:
rustc version:
$ wasm-pack --version
wasm-pack 0.13.1
$ grep -P '^channel' rust-toolchain.toml
channel = "nightly-2025-01-06"
$ rustc --version
rustc 1.86.0-nightly (b3b368a18 2025-01-05)
$ cargo --version
cargo 1.86.0-nightly (fd784878c 2025-01-03)
Metadata
Metadata
Assignees
Labels
No labels