Crate cargo_parcel

Crate cargo_parcel 

Source
Expand description

A library implementing an extended version of cargo install.

The intended use of this crate is in an xtask-style helper crate, extending cargo with a parcel subcommand, providing a superset of the functionality provided by cargo install. For such typical use, a single call to the main function is sufficient to implement the helper crate’s main (and only) program.

The rest of the API is provided for experimentation with alternative interfaces to the functionality provided, but should be considered in flux; no particular considerations to backward compatibility will be made, although breaking API changes will result in a semver bump, following the usual Rust conventions.

Modules§

util
Miscellaneous utilities

Structs§

Action
An action to be carried out.
Config
The configuration, as parsed from Cargo.toml.
Error
The Error type, a wrapper around a dynamic error type.
ManPageError
Describes an error caused by an invalid man page specification.
ManSource
Represents a manual page to be installed.
Parcel
A description of a parcel’s metadata.
ParcelBuilder
A builder allowing to configuration of optional parcel properties.
ParseManSourceError
Error stemming from parsing a
PkgDataError
Describes an error caused by a invalid pkg-data item.

Enums§

ManSourceFormat
The format of the source file for a man page.

Functions§

main
Run the command line interface.