pub struct Package {
pub name: String,
pub manifest: PathBuf,
pub root: PathBuf,
pub source_dirs: Vec<PathBuf>,
pub uses_ravenrs: bool,
pub config: Config,
}Expand description
One package of the workspace.
Fields§
§name: StringIts name.
manifest: PathBufIts Cargo.toml.
root: PathBufThe directory of its Cargo.toml; diagnostics are relative to it.
source_dirs: Vec<PathBuf>The directories of its library and binaries. Tests, examples and benches are left out.
uses_ravenrs: boolWhether it depends on a RavenRS crate.
config: ConfigIts configuration, the workspace’s merged under its own.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Package
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnsafeUnpin for Package
impl UnwindSafe for Package
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