[][src]Struct cargo_parcel::ParcelBuilder

pub struct ParcelBuilder(_);

A builder allowing to configuration of optional parcel properties.

Methods

impl ParcelBuilder[src]

pub fn cargo_binaries<I>(self, bins: I) -> Self where
    I: IntoIterator,
    I::Item: AsRef<str>, 
[src]

Configures the cargo binaries.

pub fn man_pages<I>(self, sources: I) -> Result<Self, ManPageError> where
    I: IntoIterator,
    I::Item: AsRef<str>, 
[src]

Configures the man pages to install.

pub fn pkg_data<I>(self, pkg_data: I) -> Result<Self, PkgDataError> where
    I: IntoIterator,
    I::Item: AsRef<str>, 
[src]

Configures data files and directories to be installed in an application-specific directory.

The strings passed will be expanded as glob expressions, and need to refer to existing files or directories, relative to the crate root directory. The resulting list of paths will be copied, recursively, in the case of directories into the application-specific data directory below the installation prefix. Note they will be placed in that directory using their file name, ignoring any leading directory components.

pub fn finish(self) -> Parcel[src]

Finishes configuration and returns the parcel as configured.

Trait Implementations

impl Debug for ParcelBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,