Struct chef::Skeleton[][src]

pub struct Skeleton {
    pub manifests: Vec<Manifest>,
    pub config_file: Option<String>,
    pub lock_file: Option<String>,
}

Fields

manifests: Vec<Manifest>config_file: Option<String>lock_file: Option<String>

Implementations

Find all Cargo.toml files in base_path by traversing sub-directories recursively.

Given the manifests in the current skeleton, create the minimum set of files required to have a valid Rust project (i.e. write all manifests to disk and create dummy lib.rs, main.rs and build.rs files where needed).

This function should be called on an empty canvas - i.e. an empty directory apart from the recipe file used to restore the skeleton.

Scan the target directory and remove all compilation artifacts for libraries and build scripts from the current workspace. Given the usage of dummy lib.rs and build.rs files, keeping them around leads to funny compilation errors.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.