pub struct Manifest {
pub origin: Option<String>,
pub use_map: IndexMap<String, UrlOrManifest>,
pub package: IndexMap<String, Annotation>,
pub atoms: IndexMap<String, Atom>,
pub commands: IndexMap<String, Command>,
pub bindings: Vec<Binding>,
pub entrypoint: Option<String>,
}
Expand description
Manifest of the file, see spec §2.3.1
Fields§
§origin: Option<String>
If this manifest was vendored from an external source, where did it originally come from? Necessary for vendoring dependencies.
use_map: IndexMap<String, UrlOrManifest>
Dependencies of this file (internal or external)
package: IndexMap<String, Annotation>
Package version, author, license, etc. information
atoms: IndexMap<String, Atom>
Atoms (executable files) in this container
commands: IndexMap<String, Command>
Commands that this container can execute (empty for library-only containers)
bindings: Vec<Binding>
Binding descriptions of this manifest
entrypoint: Option<String>
Entrypoint (default command) to lookup in self.commands
when invoking wasmer run file.webc
Implementations§
source§impl Manifest
impl Manifest
pub fn package_annotation<T>(&self, name: &str) -> Result<Option<T>, Error>where T: DeserializeOwned,
source§impl Manifest
impl Manifest
Well-known annotations.
sourcepub fn filesystem(&self) -> Result<Option<FileSystemMappings>, Error>
pub fn filesystem(&self) -> Result<Option<FileSystemMappings>, Error>
Use Get the package’s FileSystemMappings
annotations stored at
FileSystemMappings::KEY
.
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>,
Deserialize this value from the given Serde deserializer. Read more