cargo publish
Upload a package to the registry
Options
Name | Description |
---|---|
--index <index> | Registry index URL to upload the package to |
--token <token> | Token to use when uploading |
--target <target> |
|
--target-dir <target-dir> | Directory for all generated artifacts |
-p, --package <package...> | Package to publish |
--manifest-path <manifest-path> | Path to Cargo.toml |
--features <features...> |
|
-j, --jobs <jobs> | Number of parallel jobs, defaults to # of CPUs |
--registry <registry> | Registry to publish to |
--color <color> | Coloring: auto, always, never |
--config <config> |
|
-Z <unstable-features> |
|
-q, --quiet | Do not print cargo log messages |
--no-verify | Don't verify the contents by building them |
--allow-dirty | Allow dirty working directories to be packaged |
--all-features | Activate all available features |
--no-default-features | Do not activate the `default` feature |
--dry-run | Perform all checks without uploading |
-h, --help | Print help information |
-v, --verbose |
|
--frozen | Require Cargo.lock and cache are up to date |
--locked | Require Cargo.lock is up to date |
--offline | Run without accessing the network |