Struct cargo_deb::Config [] [src]

pub struct Config {
    pub manifest_dir: PathBuf,
    pub target: Option<String>,
    pub target_dir: PathBuf,
    pub name: String,
    pub license: Option<String>,
    pub license_file: Option<PathBuf>,
    pub license_file_skip_lines: usize,
    pub copyright: String,
    pub changelog: Option<String>,
    pub version: String,
    pub homepage: Option<String>,
    pub documentation: Option<String>,
    pub repository: Option<String>,
    pub description: String,
    pub extended_description: Option<String>,
    pub maintainer: String,
    pub depends: String,
    pub section: Option<String>,
    pub priority: String,
    pub conflicts: Option<String>,
    pub breaks: Option<String>,
    pub replaces: Option<String>,
    pub provides: Option<String>,
    pub architecture: String,
    pub conf_files: Option<String>,
    pub assets: Vec<Asset>,
    pub maintainer_scripts: Option<PathBuf>,
    pub features: Vec<String>,
    pub default_features: bool,
    pub strip: bool,
    // some fields omitted
}

Cargo deb configuration read from the manifest and cargo metadata

Fields

Root directory where Cargo.toml is located. It's a subdirectory in workspaces.

Triple. None means current machine architecture.

CARGO_TARGET_DIR

The name of the project to build

The software license of the project (SPDX format).

The location of the license file

number of lines to skip when reading license_file

The copyright of the project (Debian's copyright file contents).

The version number of the project.

The homepage URL of the project.

Documentation URL from Cargo.toml. Fallback if homepage is missing.

The URL of the software repository.

A short description of the project.

An extended description of the project.

The maintainer of the Debian package. In Debian control file Maintainer field format.

The Debian dependencies required to run the project.

The Debian software category to which the package belongs.

The Debian priority of the project. Typically 'optional'.

Conflicts Debian control field.

See PackageTransition.

Breaks Debian control field.

See PackageTransition.

Replaces Debian control field.

See PackageTransition.

Provides Debian control field.

See PackageTransition.

The Debian architecture of the target system.

A list of configuration files installed by the package.

All of the files that are to be packaged.

The path were possible maintainer scripts live

List of Cargo features to use during build

Should the binary be stripped from debug symbols?

Methods

impl Config
[src]

[src]

Makes a new config from Cargo.toml in the current working directory.

None target means the host machine's architecture.

[src]

Trait Implementations

impl Debug for Config
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Config

impl Sync for Config