Skip to content

Crates

Publishes a single Rust package or entire workspace to crates.io. If the workspace contains multiple crates, they are published in dependency order.

OptionDescription
noDevDepsStrip devDependencies before publishing. Requires cargo-hack. Default: false
NameDescription
CRATES_IO_TOKENAccess token for crates.io
CARGO_BINPath to cargo. Default: cargo
targets:
- name: crates
noDevDeps: false
  • cargo must be installed and configured on the system
  • For workspaces, crates are published in topological order based on dependencies