Enum webc::wasmer_package::ManifestError
source · #[non_exhaustive]
pub enum ManifestError {
InvalidDependency(String),
SerializeCborAnnotation {
key: String,
error: Error,
},
UnknownAtomKind(String),
DuplicateModule(String),
ReadAtomFile {
module: String,
path: PathBuf,
error: Error,
},
DuplicateCommand(String),
UnknownRunnerKind(String),
MergeAnnotations {
command: String,
key: String,
},
InvalidModuleReference {
command: String,
module: String,
},
WasmerTomlAnnotations {
error: Box<dyn Error + Send + Sync>,
},
OutsideBaseDirectory {
path: PathBuf,
base_dir: PathBuf,
},
MissingFile {
path: PathBuf,
base_dir: PathBuf,
},
}
Expand description
Errors that may occur when converting from a wasmer_toml::Manifest
to
a crate::metadata::Manifest
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidDependency(String)
A dependency specification had a syntax error.
SerializeCborAnnotation
Unable to serialize an annotation.
UnknownAtomKind(String)
Specified an unknown atom kind.
DuplicateModule(String)
A module was specified more than once.
ReadAtomFile
Fields
Unable to read a module’s source
.
DuplicateCommand(String)
A command was specified more than once.
UnknownRunnerKind(String)
An unknown runner kind was specified.
MergeAnnotations
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
An error occurred while merging user-defined annotations in with automatically generated ones.
InvalidModuleReference
A command uses a non-existent module.
WasmerTomlAnnotations
Unable to deserialize custom annotations from the wasmer.toml
manifest.
OutsideBaseDirectory
The wasmer.toml
file references a file outside of its base directory.
MissingFile
The manifest references a file that doesn’t exist.
Trait Implementations§
source§impl Debug for ManifestError
impl Debug for ManifestError
source§impl Display for ManifestError
impl Display for ManifestError
source§impl Error for ManifestError
impl Error for ManifestError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ManifestError> for WasmerPackageError
impl From<ManifestError> for WasmerPackageError
source§fn from(source: ManifestError) -> Self
fn from(source: ManifestError) -> Self
Converts to this type from the input type.