Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add --recs arg to sozo build #3062

Merged
merged 1 commit into from
Feb 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions bin/sozo/src/commands/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
#[arg(help = "Generate Typescript bindings.")]
pub typescript_v2: bool,

#[arg(long)]
#[arg(help = "Generate Recs bindings.")]
pub recs: bool,

Check warning on line 31 in bin/sozo/src/commands/build.rs

View check run for this annotation

Codecov / codecov/patch

bin/sozo/src/commands/build.rs#L31

Added line #L31 was not covered by tests

#[arg(long)]
#[arg(help = "Generate Unity bindings.")]
pub unity: bool,
Expand Down Expand Up @@ -118,6 +122,10 @@
builtin_plugins.push(BuiltinPlugins::TypeScriptV2);
}

if self.recs {
builtin_plugins.push(BuiltinPlugins::Recs);
}

Check warning on line 127 in bin/sozo/src/commands/build.rs

View check run for this annotation

Codecov / codecov/patch

bin/sozo/src/commands/build.rs#L125-L127

Added lines #L125 - L127 were not covered by tests

if self.unity {
builtin_plugins.push(BuiltinPlugins::Unity);
}
Expand Down Expand Up @@ -204,6 +212,7 @@
features,
typescript: false,
typescript_v2: false,
recs: false,

Check warning on line 215 in bin/sozo/src/commands/build.rs

View check run for this annotation

Codecov / codecov/patch

bin/sozo/src/commands/build.rs#L215

Added line #L215 was not covered by tests
unity: false,
bindings_output: "bindings".to_string(),
stats: StatOptions::default(),
Expand Down
Loading