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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Skeleton
impl UnwindSafe for Skeleton
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.