pub struct Workspace {
pub root: PathBuf,
pub crates: BTreeMap<String, Vec<PathBuf>>,
}Expand description
The crates of a workspace: every Cargo.toml under root (skipping build and vcs dirs), keyed by both the
package name and the [lib] name, - spelled _, mapped to the crate root files that claim the name —
more than one when a facade package and the library it re-exports share it (aprender’s root aprender
is pub use aprender_ml::* over crates/aprender-core, whose [lib] name is also aprender). The walk
tries each in byte order of the manifest path and keeps the first that resolves.
Fields§
§root: PathBuf§crates: BTreeMap<String, Vec<PathBuf>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Workspace
impl RefUnwindSafe for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnsafeUnpin for Workspace
impl UnwindSafe for Workspace
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