Stream: git-wasmtime

Topic: wasmtime / PR #13560 Remove Cargo features from `wasmtime...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 04 2026 at 20:24):

alexcrichton opened PR #13560 from alexcrichton:no-gate-features-in-cranelift to bytecodealliance:main:

This commit removes the suite of Cargo features corresponding to wasm proposals from the wasmtime-internal-cranelift crate. These features are now instead unconditionally enabled for the crate. This is similarly handled now in wasmtime-internal-winch.

The motivation for this commit is that all #[cfg] comes at a cost in terms of CI, reading, writing, etc. The primary benefits of #[cfg] are reducing runtime dependencies and reducing the compiled footprint of an application. With wasmtime-internal-cranelift neither of these benefits are realized with the current features because runtime dependencies are the same with/without the features and Cranelift dominates the compiled code size. Given the very-minor benefits, if any, that are being earned it doesn't seem worth the cost.

This means that Cranelift translation unconditionally has support for all wasm proposals, regardless of how Wasmtime is configured. Note though that Wasmtime retains all these features just as before because they do indeed gate actual runtime dependencies or significant chunks of binary size.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jun 04 2026 at 20:24):

alexcrichton requested cfallin for a review on PR #13560.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 04 2026 at 20:24):

alexcrichton requested wasmtime-compiler-reviewers for a review on PR #13560.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 04 2026 at 20:24):

alexcrichton requested wasmtime-core-reviewers for a review on PR #13560.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 04 2026 at 20:29):

alexcrichton updated PR #13560.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 04 2026 at 20:30):

:memo: bjorn3 submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 04 2026 at 20:30):

:speech_balloon: bjorn3 created PR review comment:

Before this was the serde integration of cranelift-codegen already unconditionally enabled? If not, how much does that hurt compile time?

view this post on Zulip Wasmtime GitHub notifications bot (Jun 04 2026 at 20:33):

:thumbs_up: cfallin submitted PR review:

This is a great cleanup in general -- thanks for doing this!

I guess one of the other reasons for us to feature-flag in general is to gate in-development or unstable features. Probably though that's more appropriate for the runtime (where a build-time feature could compile out some runtime-reachable path) and we can rely on dynamic Config feature flags to guard use of unstable features during compilation. So overall I agree there doesn't seem to be a good reason to keep this.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 04 2026 at 21:01):

alexcrichton updated PR #13560.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 04 2026 at 21:02):

:memo: alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 04 2026 at 21:02):

:speech_balloon: alexcrichton created PR review comment:

I'm not sure, I haven't measured.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 04 2026 at 21:02):

alexcrichton has enabled auto merge for PR #13560.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 04 2026 at 21:45):

alexcrichton added PR #13560 Remove Cargo features from wasmtime-internal-cranelift to the merge queue

view this post on Zulip Wasmtime GitHub notifications bot (Jun 04 2026 at 22:11):

github-actions[bot] added the label wasmtime:api on PR #13560.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 04 2026 at 22:11):

github-actions[bot] added the label winch on PR #13560.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 04 2026 at 22:12):

github-actions[bot] commented on PR #13560:

Subscribe to Label Action

cc @saulecabrera

<details>
This issue or pull request has been labeled: "wasmtime:api", "winch"

Thus the following users have been cc'd because of the following labels:

To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.

Learn more.
</details>

view this post on Zulip Wasmtime GitHub notifications bot (Jun 04 2026 at 22:31):

:check: alexcrichton merged PR #13560.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 04 2026 at 22:31):

alexcrichton removed PR #13560 Remove Cargo features from wasmtime-internal-cranelift from the merge queue


Last updated: Jul 29 2026 at 05:03 UTC