[][src]Struct cargo_deb::Config

pub struct Config {
    pub manifest_dir: PathBuf,
    pub deb_output_path: Option<String>,
    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: Assets,
    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

manifest_dir: PathBuf

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

deb_output_path: Option<String>

User-configured output path for *.deb

target: Option<String>

Triple. None means current machine architecture.

target_dir: PathBuf

CARGO_TARGET_DIR

name: String

The name of the project to build

license: Option<String>

The software license of the project (SPDX format).

license_file: Option<PathBuf>

The location of the license file

license_file_skip_lines: usize

number of lines to skip when reading license_file

copyright: String

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

changelog: Option<String>version: String

The version number of the project.

homepage: Option<String>

The homepage URL of the project.

documentation: Option<String>

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

repository: Option<String>

The URL of the software repository.

description: String

A short description of the project.

extended_description: Option<String>

An extended description of the project.

maintainer: String

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

depends: String

The Debian dependencies required to run the project.

section: Option<String>

The Debian software category to which the package belongs.

priority: String

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

conflicts: Option<String>

Conflicts Debian control field.

See PackageTransition.

breaks: Option<String>

Breaks Debian control field.

See PackageTransition.

replaces: Option<String>

Replaces Debian control field.

See PackageTransition.

provides: Option<String>

Provides Debian control field.

See PackageTransition.

architecture: String

The Debian architecture of the target system.

conf_files: Option<String>

A list of configuration files installed by the package.

assets: Assets

All of the files that are to be packaged.

maintainer_scripts: Option<PathBuf>

The path were possible maintainer scripts live

features: Vec<String>

List of Cargo features to use during build

default_features: boolstrip: bool

Should the binary be stripped from debug symbols?

Methods

impl Config[src]

pub fn from_manifest(
    manifest_path: &Path,
    output_path: Option<String>,
    target: Option<&str>,
    variant: Option<&str>,
    listener: &dyn Listener
) -> CDResult<Config>
[src]

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

None target means the host machine's architecture.

pub fn resolve_assets(&mut self) -> CDResult<()>[src]

pub fn add_debug_assets(&mut self)[src]

Trait Implementations

impl Debug for Config[src]

Auto Trait Implementations

impl Send for Config

impl Sync for Config

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]