]>
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",
16 "Don't verify the contents by building them",
20 "Ignore warnings about a lack of human-usable metadata",
24 "Allow dirty working directories to be packaged",
26 .arg_target_triple("Build for the target triple")
32 pub fn exec(config
: &mut Config
, args
: &ArgMatches
<'_
>) -> CliResult
{
33 let ws
= args
.workspace(config
)?
;
38 verify
: !args
.is_present("no-verify"),
39 list
: args
.is_present("list"),
40 check_metadata
: !args
.is_present("no-metadata"),
41 allow_dirty
: args
.is_present("allow-dirty"),
42 target
: args
.target(),