Module cargo::ops::cargo_package
source · Structs§
- Archive
File π - GitVcs
Info π - Local
Dependencies πJust the part of the dependency graph thatβs between the packages weβre packaging. (Is the package name a good key? Does it uniquely identify packages?) - TmpRegistry πManages a temporary local registry that we use to overlay our new packages on the upstream registry. This way we can build lockfiles that depend on the new packages even before theyβre published.
- VcsInfo π
Enums§
- File
Contents π - Generated
File π
Constants§
- VCS_
INFO_ πFILE
Functions§
- build_
ar_ πlist Builds list of files to archive. - build_
lock πConstructCargo.lock
for 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-dirty
has not been passed, thenbail!
with an informative message. Otherwise return the sha1 hash of the current HEAD commit, orNone
if no repo is found. - compare_
resolve πGenerate warnings when packaging Cargo.lock, and the resolve have changed. - create_
package π - get_
registry πDetermine which registry the packages are for. - hash_
all π - local_
deps πBuild just the part of the dependency graph thatβs between the given packages, ignoring dev dependencies. - Packages an entire workspace.
- 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
ArchiveFile
s and writes into the given file.