Stream: git-wasmtime

Topic: wasmtime / issue #12628 Minimal build doesn't include GC ...


view this post on Zulip Wasmtime GitHub notifications bot (Feb 20 2026 at 17:44):

effulgentsia opened issue #12628:

Feature

Either enable the equivalent of config.gc_support(false) to be called from the C API, or make the default be false when using the minimal (without GC) wasmtime build. Currently, the combination of the minimal build not having GC, but the default assumption of GC support being true and no C API to set it to false results in a panic when creating the engine.

Benefit

To be able to use wasmtime-go (or any other SDK that uses the C API) to embed the minimal wasmtime build into an application when Cranelift, GC, etc. aren't needed and wanting to minimize the size of the compiled application.

Implementation

I think exposing config.gc_support(false) to the C API would be the most straightforward and useful beyond the minimal build use case.

Alternatives

Packaging the minimal build in such a way that it defaults to returning false for GC support since it lacks GC.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 20 2026 at 17:56):

tschneidereit commented on issue #12628:

I agree that exposing config.gc_support(false) would make sense, and that (for now, at least) the minimal build should omit GC support. I also think that for builds that don't include GC support, ideally the config would default to false as well, since the current default doesn't make much sense.

Would you be up for working on adding this, @effulgentsia?

view this post on Zulip Wasmtime GitHub notifications bot (Feb 20 2026 at 19:59):

alexcrichton added the wasmtime:c-api label to Issue #12628.


Last updated: Feb 24 2026 at 04:36 UTC