]>
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")
33 pub fn exec(config
: &mut Config
, args
: &ArgMatches
<'_
>) -> CliResult
{
34 let ws
= args
.workspace(config
)?
;
39 verify
: !args
.is_present("no-verify"),
40 list
: args
.is_present("list"),
41 check_metadata
: !args
.is_present("no-metadata"),
42 allow_dirty
: args
.is_present("allow-dirty"),
43 target
: args
.target(),