semantic-release-cargo
v2.4.2
Published
semantic release plugin to deploy crates to cargo.io (or other registries)
Readme
semantic release cargo
Semantic release plugin to publish cargo packages. Login with a cargo.io registry token and publish your crate.
Configuration
Environment
CARGO_REGISTRY_TOKEN: required token that is used to login against crates.io. This is not required or verified if both thepublishandalwaysVerifyTokenoptions are false.
Options
allFeatures: Boolean that attaches--all-featuresto the cargo commands (defaults tofalse)check: Boolean that defines ifcargo checkis executed (defaults totrue)checkArgs: Array of strings that contains additional arguments forcargo checkpublish: Boolean that defines ifcargo publishis executed (defaults totrue)publishArgs: Array of strings that contains additional arguments forcargo publishalwaysVerifyToken: Boolean that causesCARGO_REGISTRY_TOKENverification to be skipped if both it andpublisharefalse(defaults totrue)
Full Configuration Example
// .releaserc.json example
{
"plugins": [
[
"semantic-release-cargo",
{
"allFeatures": true,
"check": true,
"checkArgs": ["--no-deps"],
"publish": true,
"publishArgs": ["--no-verify"]
}
]
]
}