Deploy Rust crates to crates.io.
This plugin is not included with the auto
CLI installed via NPM. To install:
npm i --save-dev @auto-it/crates
# or
yarn add -D @auto-it/crates
WARNING: You can only use one "package manager" at a time! Mixing them will lead to undesired results.
{
"plugins": ["crates"]
}
This plugin handles incrementing the crate version, but it requires that your crate be ready for publishing. You can view the publishing reference for more information on that process.
When ran on a machine with ~/cargo/credentials
, that file will automatically be used by Cargo. For machines that do not have this file (like CI builds), the CARGO_REGISTRY_TOKEN
environment variable is expected for Cargo's publish command as per the publish options.