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: String
name of the package which called inwelling::to()
in its build.rs
.
manifest: PathBuf
path of Cargo.toml
.
metadata: Value
metadata 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 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