Skip to main content
Version: Next

cargo

Available Commands

CommandDescription
dispatchRuns an arbitrary Cargo subcommand (Terrabuild action name is forwarded to cargo).
buildBuild project.
testRuns tests with cargo test.

Project Initializer

Computes default outputs and dependencies from Cargo.toml.

project {
@cargo { }
}

Equivalent to:

project {
ignores = [ ]
outputs = [ "target/debug/" "target/release/" ]
}