bytecodealliance / bytecodealliance/wit-bindgen

Allow using Rust features to enable WIT features

Open
#1,643 0 comments 0 reactions 0 assignees View on GitHub
gen-rust
Dominant language
Rust
Stars
1.5k
Forks
286
Avg merge
6h 32m
Merged PRs (30d)
19

Description

I would like to be able to do the following:

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

Contributor guide

No contributing guide indexed for this repository

Research direction

No file, test, or implementation entry point is named. Start by tracing the `wit_bindgen::generate!` macro and its existing WIT feature handling, then define how Rust `cfg(feature = ...)` expressions should select feature lists; done means the requested example works and is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, wasm
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.