Struct cargo_pack::CargoPack[][src]

pub struct CargoPack<'cfg> { /* fields omitted */ }

cargo-pack API

Methods

impl<'cfg> CargoPack<'cfg>
[src]

create a new CargoPack value

let config = Config::default().unwrap();
let pack = CargoPack::new(&config, None);

returns the current working space of the package of package_name

returns the PackConfig value

returns the Package value of package_name

decode a value from the manifest toml file.

returns files defined in package.metadata.pack.files in the Cargo.toml.

Auto Trait Implementations

impl<'cfg> !Send for CargoPack<'cfg>

impl<'cfg> !Sync for CargoPack<'cfg>