Struct wasmer_toml::Manifest

source ·
pub struct Manifest {
    pub base_directory_path: PathBuf,
    pub package: Package,
    pub dependencies: Option<HashMap<String, String>>,
    pub fs: Option<IndexMap<String, PathBuf>>,
    pub module: Option<Vec<Module>>,
    pub command: Option<Vec<Command>>,
}
Expand description

The manifest represents the file used to describe a Wasm package.

The module field represents the wasm file to be published.

The source is used to create bundles with the fs section.

The fs section represents fs assets that will be made available to the program relative to its starting current directory (there may be issues with WASI). These are pairs of paths.

Fields§

§base_directory_path: PathBuf

private data store the directory path of the manifest file for use later accessing relative path fields

§package: Package§dependencies: Option<HashMap<String, String>>§fs: Option<IndexMap<String, PathBuf>>

Of the form Guest -> Host path

§module: Option<Vec<Module>>§command: Option<Vec<Command>>

Implementations§

Construct a manifest by searching in the specified directory for a manifest file

add a dependency

remove dependency by package name

Write the manifest to permanent storage

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.