[][src]Struct chef::Skeleton

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

Fields

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

Implementations

impl Skeleton[src]

pub fn derive<P: AsRef<Path>>(base_path: P) -> Result<Self, Error>[src]

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

pub fn build_minimum_project(&self, base_path: &Path) -> Result<(), Error>[src]

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.

pub fn remove_compiled_dummy_libraries<P: AsRef<Path>>(
    &self,
    base_path: P,
    profile: OptimisationProfile,
    target: Option<String>,
    target_dir: Option<PathBuf>
) -> Result<(), Error>
[src]

Scan the target directory and remove all compilation artifacts for libraries from the current workspace. Given the usage of dummy lib.rs files, keeping them around leads to funny compilation errors if they are a dependency of another project within the workspace.

Trait Implementations

impl Clone for Skeleton[src]

impl Debug for Skeleton[src]

impl<'de> Deserialize<'de> for Skeleton[src]

impl Eq for Skeleton[src]

impl PartialEq<Skeleton> for Skeleton[src]

impl Serialize for Skeleton[src]

impl StructuralEq for Skeleton[src]

impl StructuralPartialEq for Skeleton[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.