Test Case
N/A
Steps to Reproduce
- Depend on
wasmtime with the runtime feature, but without the gc feature;
- Set
Config::wasm_bulk_memory(false) (cannot set Config::wasm_reference_types);
- Invoke the runtime.
Expected Results
The wasm_reference_types feature should be considered disabled (and/or it should be possible to disable the feature without enabling the entire gc feature.)
Actual Results
wasmtime returns Err(feature 'reference_types' requires 'bulk_memory' to be enabled)
Versions and Environment
Wasmtime version or commit: 26.0.1
Operating system: Linux
Architecture: x86_64
Extra Info
wasm_reference_types config was not hidden behind a feature in the past. I'm attempting to update wasmtime from 14.0.1.
REFERENCE_TYPES gets set by the default set of supported features via WasmFeatures::WASM2.
My suggestion here is that Config parameters perhaps should not be gated by crate features.
Test Case
N/A
Steps to Reproduce
wasmtimewith theruntimefeature, but without thegcfeature;Config::wasm_bulk_memory(false)(cannot setConfig::wasm_reference_types);Expected Results
The
wasm_reference_typesfeature should be considered disabled (and/or it should be possible to disable the feature without enabling the entiregcfeature.)Actual Results
wasmtime returns
Err(feature 'reference_types' requires 'bulk_memory' to be enabled)Versions and Environment
Wasmtime version or commit: 26.0.1
Operating system: Linux
Architecture: x86_64
Extra Info
wasm_reference_typesconfig was not hidden behind a feature in the past. I'm attempting to update wasmtime from14.0.1.REFERENCE_TYPESgets set by the default set of supported features viaWasmFeatures::WASM2.My suggestion here is that
Configparameters perhaps should not be gated by crate features.