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.

Configuration

OptionDescription
noDevDepsStrip devDependencies before publishing. Requires cargo-hack. Default: false

Environment Variables

NameDescription
CRATES_IO_TOKENAccess token for crates.io
CARGO_BINPath to cargo. Default: cargo

Example

targets:
- name: crates
noDevDeps: false

Notes

  • cargo must be installed and configured on the system
  • For workspaces, crates are published in topological order based on dependencies