Skip to content

Remove async feature of wit-bindgen-rust-macros#1595

Merged
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:remove-async-feature
Apr 17, 2026
Merged

Remove async feature of wit-bindgen-rust-macros#1595
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:remove-async-feature

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

This removes the async feature which is purely used for an error message and that's it. While the error message is useful the way that the feature is activated results in an unfortunate interaction with Cargo dependencies and how lock files are generated. Notably the conditional a?/b syntax means that even when a Cargo feature is disabled the full dependency tree shows up in lock files (for now). The dependency tree of wit-bindgen-rust-macros is quite large, which is why it's an optional feature, so this is undesirable.

This removes the `async` feature which is purely used for an error
message and that's it. While the error message is useful the way that
the feature is activated results in an unfortunate interaction with
Cargo dependencies and how lock files are generated. Notably the
conditional `a?/b` syntax means that even when a Cargo feature is
disabled the full dependency tree shows up in lock files (for now). The
dependency tree of `wit-bindgen-rust-macros` is quite large, which is
why it's an optional feature, so this is undesirable.
@alexcrichton alexcrichton requested a review from dicej April 17, 2026 15:57
@alexcrichton alexcrichton added this pull request to the merge queue Apr 17, 2026
Merged via the queue into bytecodealliance:main with commit f2c3e9f Apr 17, 2026
29 checks passed
@alexcrichton alexcrichton deleted the remove-async-feature branch April 17, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants