cargo package

Assemble the local package into a distributable tarball

Options

NameDescription
--target <target>
  • Repeatable ♾
--target-dir <target-dir>Directory for all generated artifacts
--features <features...>
  • Repeatable ♾
-p, --package <package...>
  • Repeatable ♾
--exclude <exclude>
  • Repeatable ♾
--manifest-path <manifest-path>Path to Cargo.toml
-j, --jobs <jobs>Number of parallel jobs, defaults to # of CPUs
--color <color>Coloring: auto, always, never
--config <config>
  • Repeatable ♾
-Z <unstable-features>
  • Repeatable ♾
-q, --quietDo not print cargo log messages
-l, --listPrint files included in a package without making one
--no-verifyDon't verify the contents by building them
--no-metadataIgnore warnings about a lack of human-usable metadata
--allow-dirtyAllow dirty working directories to be packaged
--all-featuresActivate all available features
--no-default-featuresDo not activate the `default` feature
--workspaceAssemble all packages in the workspace
-h, --helpPrint help information
-v, --verbose
  • Repeatable ♾
--frozenRequire Cargo.lock and cache are up to date
--lockedRequire Cargo.lock is up to date
--offlineRun without accessing the network