Skip to content

Commit 04ca1c5

Browse files
authored
Enable the component model feature by default (#1391)
This commit enables the `WasmFeatures::component_model` field by default. This is not a phase 3 proposal in the Wasm CG at this time but this reflects the status of the component model within the WASI CG, however.
1 parent dcdfb0e commit 04ca1c5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

crates/wasmparser/src/validator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,6 @@ impl Default for WasmFeatures {
372372
exceptions: false,
373373
memory64: false,
374374
extended_const: false,
375-
component_model: false,
376375
function_references: false,
377376
memory_control: false,
378377
gc: false,
@@ -392,6 +391,7 @@ impl Default for WasmFeatures {
392391
relaxed_simd: true,
393392
threads: true,
394393
multi_memory: true,
394+
component_model: true,
395395
}
396396
}
397397
}

tests/roundtrip.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ impl TestState {
578578
match part {
579579
"testsuite" => {
580580
features = WasmFeatures::default();
581+
features.component_model = false;
581582

582583
// NB: when these proposals are merged upstream in the spec
583584
// repo then this should be removed. Currently this hasn't
@@ -597,6 +598,7 @@ impl TestState {
597598
features.bulk_memory = false;
598599
features.function_references = false;
599600
features.gc = false;
601+
features.component_model = false;
600602
features.component_model_values = false;
601603
}
602604
"floats-disabled.wast" => features.floats = false,

0 commit comments

Comments
 (0)