cargo
Provides build/test helpers for Rust projects using Cargo and a Cargo.toml at the project root.
Infers dependencies from Cargo.toml to link Terrabuild graphs and defaults outputs to target/{debug,release}.
Available Commands
| Command | Description |
|---|---|
| test | Runs tests with cargo test. |
| build | Build project. |
| <command> | Runs an arbitrary Cargo subcommand (Terrabuild action name is forwarded to cargo). |
Project Initializer
Infers project metadata from Cargo.toml (dependencies and default outputs).
project {
@cargo { }
}Equivalent to:
project {
ignores = [ ]
outputs = [ "target/debug/" "target/release/" ]
}Last updated on