bytecodealliance / bytecodealliance/cargo-component
Configuration for additional_derives_ignore
- Dominant language
- Rust
- Stars
- 593
- Forks
- 68
- PR merge metrics
- No merged PRs in 30d
Description
wit-bindgen has a feature to disable certain variants and records from being included for the additional_derives:
https://github.com/bytecodealliance/wit-bindgen/pull/1199
Looks like this is just empty currently: https://github.com/bytecodealliance/cargo-component/blob/40a41559a1cd938900823f727e7a9ab4f4ada910/src/bindings.rs#L112
I would like to be able to set the derives for serde, but the generated code has errors due to it adding these derives to imported types from wasi io:
[package.metadata.component.bindings]
derives = ["serde::Serialize", "serde::Deserialize"]
```
LastOperationFailed(Error),
^^^^^ the trait `Deserialize<'_>` is not implemented for `bindings::wasi::io::error::Error`
```
Can this be implemented so that we can specify this value in the Cargo metadata?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.