pub struct Env {
pub root: PathBuf,
pub target: PathBuf,
}Expand description
Where code spaces are built and cached. The application chooses both directories.
Fields§
§root: PathBufThe code directory: sdk/, build/ and plugins/ go under it.
target: PathBufCargo’s target directory (shared by every build).
Implementations§
Source§impl Env
impl Env
pub fn new(root: impl Into<PathBuf>, target: impl Into<PathBuf>) -> Self
pub fn sdk_dir(&self, p: &Profile) -> PathBuf
pub fn build_dir(&self, key: &str) -> PathBuf
pub fn plugins_dir(&self) -> PathBuf
Sourcepub fn plugin_path(&self, key: &str) -> PathBuf
pub fn plugin_path(&self, key: &str) -> PathBuf
The cached library of a build key.
Trait Implementations§
impl StructuralPartialEq for Env
Auto Trait Implementations§
impl Forget for Env
impl Freeze for Env
impl Move for Env
impl RefUnwindSafe for Env
impl Send for Env
impl Sync for Env
impl Unpin for Env
impl UnsafeUnpin for Env
impl UnwindSafe for Env
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more