pub struct Package {
pub name: String,
pub manifest: PathBuf,
pub metadata: Value,
pub rs_paths: Option<Vec<PathBuf>>,
}Expand description
Information collected from one downstream crate. Including:
-
Package name.
-
Cargo.toml file’ path.
-
metadata from
[package.metadata.inwelling.*]section in Cargo.toml file. -
Optional .rs file paths.
Fields§
§name: Stringname of the package which called inwelling::to() in its build.rs.
manifest: PathBufpath of Cargo.toml.
metadata: Valuemetadata represented in Toml.
rs_paths: Option<Vec<PathBuf>>.rs files under src/, examples/ and tests/ directories if dump_rs_file
is true, otherwise None.
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 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