pub struct Manifest {Show 32 fields
pub name: Option<String>,
pub version: Option<Version>,
pub description: Option<String>,
pub homepage: Option<String>,
pub license: Option<String>,
pub bugs: Option<Bugs>,
pub keywords: Vec<String>,
pub bin: Option<Bin>,
pub author: Option<PersonField>,
pub contributors: Vec<PersonField>,
pub files: Option<Vec<String>>,
pub main: Option<String>,
pub man: Option<Man>,
pub directories: Option<Directories>,
pub module_type: Option<String>,
pub exports: Option<Exports>,
pub imports: Option<Imports>,
pub repository: Option<Repository>,
pub scripts: HashMap<String, String>,
pub config: Option<Value>,
pub engines: HashMap<String, Range>,
pub os: Vec<String>,
pub cpu: Vec<String>,
pub private: Option<bool>,
pub publish_config: HashMap<String, Value>,
pub dependencies: IndexMap<String, String>,
pub dev_dependencies: IndexMap<String, String>,
pub optional_dependencies: IndexMap<String, String>,
pub peer_dependencies: IndexMap<String, String>,
pub bundled_dependencies: Option<BundledDependencies>,
pub workspaces: Vec<String>,
pub _rest: HashMap<String, Value>,
}Fields§
§name: Option<String>The name of the package.
If this is missing, it usually indicates that this package exists only to describe a workspace, similar to Cargo’s notion of a “virtual manifest”.
version: Option<Version>The version of the package.
Package managers generally require this to be populated to actually publish the package, but will tolerate its absence during local development.
description: Option<String>§homepage: Option<String>§license: Option<String>§bugs: Option<Bugs>§keywords: Vec<String>§bin: Option<Bin>Information about the names and locations of binaries this package provides.
Use crate::BuildManifest::from_manifest to get a normalized version
of this field (and other related fields).
contributors: Vec<PersonField>§files: Option<Vec<String>>§main: Option<String>§man: Option<Man>§directories: Option<Directories>§module_type: Option<String>§exports: Option<Exports>§imports: Option<Imports>§repository: Option<Repository>Information about the repository this project is hosted in.
Repository::Str can contain many different formats (or plain garbage),
we recommend trying to .parse() it as oro-package-spec’s GitInfo type,
as it understands most of the relevant formats.
scripts: HashMap<String, String>Information about build scripts the package uses.
Use crate::BuildManifest::from_manifest to get a normalized version
of this field (and other related fields).
config: Option<Value>§engines: HashMap<String, Range>§os: Vec<String>§cpu: Vec<String>§private: Option<bool>§publish_config: HashMap<String, Value>§dependencies: IndexMap<String, String>§dev_dependencies: IndexMap<String, String>§optional_dependencies: IndexMap<String, String>§peer_dependencies: IndexMap<String, String>§bundled_dependencies: Option<BundledDependencies>§workspaces: Vec<String>§_rest: HashMap<String, Value>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Manifest
impl<'de> Deserialize<'de> for Manifest
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>,
Source§impl From<CorgiManifest> for Manifest
impl From<CorgiManifest> for Manifest
Source§fn from(value: CorgiManifest) -> Self
fn from(value: CorgiManifest) -> Self
Source§impl From<Manifest> for CorgiManifest
impl From<Manifest> for CorgiManifest
Source§impl From<Manifest> for VersionMetadata
impl From<Manifest> for VersionMetadata
Source§impl From<VersionMetadata> for Manifest
impl From<VersionMetadata> for Manifest
Source§fn from(value: VersionMetadata) -> Self
fn from(value: VersionMetadata) -> Self
impl Eq for Manifest
impl StructuralPartialEq for Manifest
Auto Trait Implementations§
impl Freeze for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.