pub struct BuildManifest {
pub bin: HashMap<String, PathBuf>,
pub scripts: HashMap<String, String>,
}Expand description
Manifest intended for use with the build step in orogene’s installer. It
reads and normalizes a package.json’s bins (including the
directories.bin field), and its scripts object.
Fields§
§bin: HashMap<String, PathBuf>Mapping of bin name to the relative path to the script/binary.
scripts: HashMap<String, String>package.json scripts object.
Implementations§
Source§impl BuildManifest
impl BuildManifest
Sourcepub fn from_path(path: impl AsRef<Path>) -> Result<Self>
pub fn from_path(path: impl AsRef<Path>) -> Result<Self>
Create a new BuildManifest from a given path to a full manifest (package.json),
normalizing its bin field (or its directories.bin) into a plain HashMap.
Sourcepub fn from_manifest(manifest: &Manifest) -> Result<Self>
pub fn from_manifest(manifest: &Manifest) -> Result<Self>
Create a new BuildManifest from an already fully loaded Manifest,
normalizing its bin field (or its directories.bin) into a plain HashMap.
Trait Implementations§
Source§impl Clone for BuildManifest
impl Clone for BuildManifest
Source§fn clone(&self) -> BuildManifest
fn clone(&self) -> BuildManifest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BuildManifest
impl Debug for BuildManifest
Source§impl Default for BuildManifest
impl Default for BuildManifest
Source§fn default() -> BuildManifest
fn default() -> BuildManifest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BuildManifest
impl<'de> Deserialize<'de> for BuildManifest
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
Source§impl PartialEq for BuildManifest
impl PartialEq for BuildManifest
Source§impl Serialize for BuildManifest
impl Serialize for BuildManifest
impl Eq for BuildManifest
impl StructuralPartialEq for BuildManifest
Auto Trait Implementations§
impl Freeze for BuildManifest
impl RefUnwindSafe for BuildManifest
impl Send for BuildManifest
impl Sync for BuildManifest
impl Unpin for BuildManifest
impl UnwindSafe for BuildManifest
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
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
Compare self to
key and return true if they are equal.