Crate cargo_dist
source ·Expand description
cargo-dist
This is the library at the core of the ‘cargo dist’ CLI. It currently mostly exists for the sake of internal documentation/testing, and isn’t intended to be used by anyone else. That said, if you have a reason to use it, let us know!
It’s currently not terribly well-suited to being used as a pure library because it happily writes to stderr/stdout whenever it pleases. Suboptimal for a library.
Re-exports
pub use tasks::*;
Modules
- The backend of cargo-dist – things it outputs
- Config types (for workspace.metadata.dist)
- Errors!
- Code to compute the tasks cargo-dist should do
Structs
- Arguments for
cargo dist generate(do_generate) - Arguments for
cargo dist init(do_init) - Represents a dynamic library located somewhere on the system
- Information about dynamic libraries used by a binary
- Arguments for
cargo dist linkage(`do_linkage)
Functions
- Run any necessary integrity checks for “primary” commands like build/plan
- Get the default list of targets
- cargo dist build – actually build binaries and installers!
- Generate any scripts which are relevant (impl of
cargo dist generate) - Run ‘cargo dist init’
- Determinage dynamic linkage of built artifacts (impl of
cargo dist linkage) - Just generate the manifest produced by
cargo dist buildwithout building - Get the list of all known targets
- The inner impl of do_generate