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"))]{[]},
});

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions