Cargo run
run executor
When to use it
Run Cargo or a project-local Tauri CLI with an argument array instead of a shell command. Cargo project targets use this executor automatically. Keep working directories and arguments explicit when adding your own target; see Rust and Cargo for inferred tasks and toolchain requirements.
Usage
Configure an Nx target on the owning project, then invoke it with npm exec -- nx run <project>:<target>. The executor identifier is not a standalone CLI command.
{
"targets": {
"reviewed-action": {
"executor": "@megamono/nx-cargo:run",
"options": {
"tool": "cargo",
"args": []
}
}
}
}This target is a configuration example. Supply required values and review side effects before invoking it.
Options
Use these options with @megamono/nx-cargo:run. Nx uses the camelCase names shown here; the CLI reference describes command-line aliases. Some options are required only for particular choices.
| Option | Required | Type | Default | Description |
|---|---|---|---|---|
tool | Yes | schema | — | — Allowed: "cargo", "tauri". |
args | Yes | array | — | — |
cwd | No | string | "." | — |
Next steps
Review changed files and run the affected project's checks. For options that accept structured values, run the generator's --help or consult the schema in the installed package.