Skip to content

Commit a0543ce

Browse files
authored
Add --all-features to the CLI (#1015)
Mirrors the `wasm-tools` CLI
1 parent 5d9964c commit a0543ce

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/bin/wit-bindgen.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ struct Common {
104104
/// This enables using `@unstable` annotations in WIT files.
105105
#[clap(long)]
106106
features: Vec<String>,
107+
108+
/// Whether or not to activate all WIT features when processing WIT files.
109+
///
110+
/// This enables using `@unstable` annotations in WIT files.
111+
#[clap(long)]
112+
all_features: bool,
107113
}
108114

109115
fn main() -> Result<()> {
@@ -183,6 +189,7 @@ fn gen_world(
183189
files: &mut Files,
184190
) -> Result<()> {
185191
let mut resolve = Resolve::default();
192+
resolve.all_features = opts.all_features;
186193
for features in opts.features.iter() {
187194
for feature in features
188195
.split(',')

0 commit comments

Comments
 (0)