bytecodealliance / bytecodealliance/cargo-component
Building with `--release` fails to generate one component type section
- Dominant language
- Rust
- Stars
- 593
- Forks
- 68
- PR merge metrics
- No merged PRs in 30d
Description
I've got [this small repro](https://github.com/bnjbvr/repro-cargo-component-release-failure), in which if I compile with `cargo-component build`, the component is created and can be loaded in wasmtime; but if I do `cargo-component build --release`, then it fails, saying that an imported interface doesn't exist. Inspecting the produced release wasm module with `wasm-tools objdump` shows there's no `log-world` component type section, while there is one such section in the non-release build.
edit: for some reason, in the original repro I do have other libraries which follow the same pattern (it's the library that's importing a component interface), and it works for all of them. Maybe a coincidence, but it's only the logging library that doesn't work somehow.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.