pub struct CrateInfo {
pub name: String,
pub root: PathBuf,
pub src_dirs: Vec<PathBuf>,
pub tests_dir: Option<PathBuf>,
pub examples_dir: Option<PathBuf>,
pub benches_dir: Option<PathBuf>,
}Expand description
Information about a crate in a workspace.
Fields§
§name: StringName of the crate
root: PathBufRoot directory of the crate (where Cargo.toml is)
src_dirs: Vec<PathBuf>Source directories to scan (typically just “src”)
tests_dir: Option<PathBuf>Test directory if it exists
examples_dir: Option<PathBuf>Examples directory if it exists
benches_dir: Option<PathBuf>Benches directory if it exists
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CrateInfo
impl RefUnwindSafe for CrateInfo
impl Send for CrateInfo
impl Sync for CrateInfo
impl Unpin for CrateInfo
impl UnwindSafe for CrateInfo
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