Skip to content

Config::wasm_bulk_memory(false) cannot be usefully specified without enabling the gc feature. #9622

@nagisa

Description

@nagisa

Test Case

N/A

Steps to Reproduce

  1. Depend on wasmtime with the runtime feature, but without the gc feature;
  2. Set Config::wasm_bulk_memory(false) (cannot set Config::wasm_reference_types);
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIncorrect behavior in the current implementation that needs fixing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions