pub struct Manifest {
pub name: PackageName,
pub version: Version,
pub main: Option<Name>,
pub private_modules: Vec<Name>,
pub dependencies: HashMap<PackageName, Dependency>,
pub test_dependencies: HashMap<PackageName, Dependency>,
}Expand description
A validated zelkova.toml.
Built only by load, which is the one place a RawManifest — the shape serde
deserializes directly, still full of unchecked strings — is turned into this one field by
field. private_modules holds the names exactly as written; whether each one names a
module the package actually holds is checked by the caller once it has loaded the
package’s sources (see the module documentation).
Fields§
§name: PackageName§version: Version§main: Option<Name>§private_modules: Vec<Name>§dependencies: HashMap<PackageName, Dependency>§test_dependencies: HashMap<PackageName, Dependency>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnsafeUnpin for Manifest
impl UnwindSafe for Manifest
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