Publishes a single Rust package or entire workspace to crates.io. If the workspace contains multiple crates, they are published in dependency order.
Configuration
| Option | Description |
|---|
noDevDeps | Strip devDependencies before publishing. Requires cargo-hack. Default: false |
Environment Variables
| Name | Description |
|---|
CRATES_IO_TOKEN | Access token for crates.io |
CARGO_BIN | Path to cargo. Default: cargo |
Example
Notes
cargo must be installed and configured on the system
- For workspaces, crates are published in topological order based on dependencies