wit-bindgen has a feature to disable certain variants and records from being included for the additional_derives:
bytecodealliance/wit-bindgen#1199
Looks like this is just empty currently:
|
additional_derive_ignore: Vec::new(), |
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?