Skip to content

Allow using Rust features to enable WIT features #1643

Description

@juntyr

I would like to be able to do the following:

wit_bindgen::generate!({
    ...
    features: #[cfg(feature = "a")]{["a"]} #[cfg(not(feature = "a"))]{[]},
});

Activity

  1. added
    gen-rustRelated to bindings for Rust-compiled-to-WebAssembly
    on Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    gen-rustRelated to bindings for Rust-compiled-to-WebAssembly

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions