pub struct Project {
pub root: PathBuf,
pub binaries: Vec<PathBuf>,
}Expand description
Project
Fields§
§root: PathBufThe project root location
binaries: Vec<PathBuf>Binaries
Implementations§
Source§impl Project
impl Project
Sourcepub fn from_current_dir() -> Result<Self>
pub fn from_current_dir() -> Result<Self>
Create a new Project from the current dir.
Sourcepub fn set_binaries(&mut self, binaries: Vec<String>) -> Result<()>
pub fn set_binaries(&mut self, binaries: Vec<String>) -> Result<()>
Constructs project binaries from a list of binary string names.
Sourcepub fn hoisted_binaries(&mut self) -> Result<Vec<HoistedBinary>>
pub fn hoisted_binaries(&mut self) -> Result<Vec<HoistedBinary>>
Builds HoistedBinary objects from the project binaries.
Sourcepub fn get_targets(&self) -> Result<Vec<String>>
pub fn get_targets(&self) -> Result<Vec<String>>
Get a list of targets for the project.
Trait Implementations§
impl Eq for Project
impl StructuralPartialEq for Project
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnwindSafe for Project
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.