Module cargo::ops::cargo_package
source · Structs
Enums
Constants
Functions
Builds list of files to archive.
Construct
Cargo.lock
for the package to be published.Checks if the package source is in a git DVCS repository. If git, and
the source is dirty (e.g., has uncommitted changes) then
bail!
with an
informative message. Otherwise return the sha1 hash of the current HEAD
commit, or None
if no repo is found.Generate warnings when packaging Cargo.lock, and the resolve have changed.
hash_all 🔒
tar 🔒
Compresses and packages a list of
ArchiveFile
s and writes into the given file.