pub struct CrateInfo {
pub name: String,
pub module_name: String,
pub manifest_path: Utf8PathBuf,
pub src_path: Utf8PathBuf,
pub is_workspace_member: bool,
}Expand description
Information about a crate in the workspace
Fields§
§name: StringCrate name (e.g., “ryo-app”)
module_name: StringModule name (hyphens → underscores, e.g., “ryo_app”)
manifest_path: Utf8PathBufPath to Cargo.toml
src_path: Utf8PathBufRoot source directory (typically “src”)
is_workspace_member: boolIs this a workspace member (vs external dependency)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CrateInfo
impl<'de> Deserialize<'de> for CrateInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CrateInfo
impl RefUnwindSafe for CrateInfo
impl Send for CrateInfo
impl Sync for CrateInfo
impl Unpin for CrateInfo
impl UnsafeUnpin 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