fix rust 1.87 with wasm-opt bulk-memory, allow configuring wasm-opt flags (#4187)

* add handling for bulk features for rust 1.87

* bump nightly

* rollback changes to toolchain
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-05-24 15:58:27 +01:00
1 parent 40ce4c269d
commit 751f1920c3
2 files changed
+43 -2

No files matched your search

+10
View File
@@ -62,6 +62,16 @@ pub(crate) struct WasmOptConfig {
/// Enable memory packing
#[serde(default = "false_bool")]
pub(crate) memory_packing: bool,
/// Extra arguments to pass to wasm-opt
///
/// For example, to enable simd, you can set this to `["--enable-simd"]`.
///
/// You can also disable features by prefixing them with `--disable-`, e.g. `["--disable-bulk-memory"]`.
///
/// Currently only --enable and --disable flags are supported.
#[serde(default)]
pub(crate) extra_features: Vec<String>,
}
/// The wasm-opt level to use for release web builds [default: Z]