]>
git.proxmox.com Git - cargo.git/blob - src/bin/cargo/commands/package.rs
1 use crate::command_prelude
::*;
3 use cargo
::ops
::{self, PackageOpts}
;
7 .about("Assemble the local package into a distributable tarball")
11 "Print files included in a package without making one",
17 "Don't verify the contents by building them",
21 "Ignore warnings about a lack of human-usable metadata",
25 "Allow dirty working directories to be packaged",
27 .arg_target_triple("Build for the target triple")
34 pub fn exec(config
: &mut Config
, args
: &ArgMatches
<'_
>) -> CliResult
{
35 let ws
= args
.workspace(config
)?
;
40 verify
: !args
.is_present("no-verify"),
41 list
: args
.is_present("list"),
42 check_metadata
: !args
.is_present("no-metadata"),
43 allow_dirty
: args
.is_present("allow-dirty"),
44 target
: args
.target(),
46 features
: args
._values_of("features"),
47 all_features
: args
.is_present("all-features"),
48 no_default_features
: args
.is_present("no-default-features"),