Module cargo::ops::cargo_package
source ยท Structsยง
- ArchiveFile ๐
- GitVcsInfo ๐
- VcsInfo ๐
Enumsยง
- FileContents ๐
- GeneratedFile ๐
Constantsยง
- VCS_INFO_FILE ๐
Functionsยง
- build_ar_list ๐Builds list of files to archive.
- build_lock ๐Construct
Cargo.lockfor the package to be published. - check_filename ๐
- check_metadata ๐
- check_repo_state ๐Checks if the package source is in a git DVCS repository. If git, and the source is dirty (e.g., has uncommitted changes), and
--allow-dirtyhas not been passed, thenbail!with an informative message. Otherwise return the sha1 hash of the current HEAD commit, orNoneif no repo is found. - compare_resolve ๐Generate warnings when packaging Cargo.lock, and the resolve have changed.
- create_package ๐
- hash_all ๐
- Packages a single package in a workspace, returning the resulting tar file.
- prepare_archive ๐Performs pre-archiving checks and builds a list of files to archive.
- run_verify ๐
- tar ๐Compresses and packages a list of
ArchiveFiles and writes into the given file.