]>
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")
8 .arg(opt("quiet", "No output printed to stdout").short("q"))
12 "Print files included in a package without making one",
18 "Don't verify the contents by building them",
22 "Ignore warnings about a lack of human-usable metadata",
26 "Allow dirty working directories to be packaged",
28 .arg_target_triple("Build for the target triple")
33 .after_help("Run `cargo help package` for more detailed information.\n")
36 pub fn exec(config
: &mut Config
, args
: &ArgMatches
<'_
>) -> CliResult
{
37 let ws
= args
.workspace(config
)?
;
42 verify
: !args
.is_present("no-verify"),
43 list
: args
.is_present("list"),
44 check_metadata
: !args
.is_present("no-metadata"),
45 allow_dirty
: args
.is_present("allow-dirty"),
46 targets
: args
.targets(),
48 cli_features
: args
.cli_features()?
,