assemble-rust 0.2.0

An assemble-rs plugin for building rust projects
Documentation
//! Contains rust related extensions

use crate::toolchain::Toolchain;

use assemble_core::lazy_evaluation::Prop;

/// The rust plugin extension
#[derive(Debug)]
pub struct RustPluginExtension {
    /// The default toolchain to use with the rust executables
    pub toolchain: Prop<Toolchain>,
}

impl RustPluginExtension {
    /// Creates a new instance of a rust extension
    pub fn new() -> Self {
        let mut extension = Self {
            toolchain: Prop::with_name("toolchain"),
        };
        extension.toolchain.set(Toolchain::stable()).unwrap();
        extension
    }
}