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 !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
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.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.