[−][src]Struct cargo_deb::manifest::Config
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
deb_name: String
The name to give the Debian package; usually the same as the Cargo project name
deb_version: String
The version to give the Debian package; usually the same as the Cargo version
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>
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.
build_depends: Option<String>
The Debian dependencies required to build 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.
triggers_file: Option<PathBuf>
The location of the triggers file
maintainer_scripts: Option<PathBuf>
The path where possible maintainer scripts live
features: Vec<String>
List of Cargo features to use during build
default_features: bool
strip: bool
Should the binary be stripped from debug symbols?
separate_debug_symbols: bool
Should the debug symbols be moved to a separate file included in the package? (implies strip:true
)
preserve_symlinks: bool
Should symlinks be preserved in the assets
Implementations
impl Config
[src]
pub fn from_manifest(
manifest_path: &Path,
package_name: Option<&str>,
output_path: Option<String>,
target: Option<&str>,
variant: Option<&str>,
deb_version: Option<String>,
listener: &dyn Listener
) -> CDResult<Config>
[src]
manifest_path: &Path,
package_name: Option<&str>,
output_path: Option<String>,
target: Option<&str>,
variant: Option<&str>,
deb_version: Option<String>,
listener: &dyn Listener
) -> CDResult<Config>
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
Auto Trait Implementations
impl RefUnwindSafe for Config
[src]
impl Send for Config
[src]
impl Sync for Config
[src]
impl Unpin for Config
[src]
impl UnwindSafe for Config
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,