|
/// Whether or not the output component is validated. |
|
/// |
|
/// This defaults to `true`. |
|
#[clap(long)] |
|
validate_component: Option<bool>, |
|
if let Some(validate) = self.component.validate_component { |
|
encoder = encoder.validate(validate); |
|
} |
https://github.com/bytecodealliance/wasm-tools/blob/74145d2038c70d984eaf55cac17b7a05f2326523/crates/wit-component/src/encoding.rs#L3116-L3120
#[derive(Default)]
pub struct ComponentEncoder {
...
validate: bool,
It seems like it might make sense to just change the ComponentEncoder default?
Ref bytecodealliance/wit-bindgen#1622 (which combined with this made for a very confusing debug session 😅)
wasm-component-ld/src/lib.rs
Lines 280 to 284 in d87393a
wasm-component-ld/src/lib.rs
Lines 699 to 701 in d87393a
https://github.com/bytecodealliance/wasm-tools/blob/74145d2038c70d984eaf55cac17b7a05f2326523/crates/wit-component/src/encoding.rs#L3116-L3120
It seems like it might make sense to just change the
ComponentEncoderdefault?Ref bytecodealliance/wit-bindgen#1622 (which combined with this made for a very confusing debug session 😅)