mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 13:48:26 +00:00
Remove wasmer-{artifact,engine} and merge it into wasmer-compiler and wasmer-vm
This commit is contained in:
@@ -90,7 +90,7 @@ pub enum WasmError {
|
||||
|
||||
/// The Serialize error can occur when serializing a
|
||||
/// compiled Module into a binary.
|
||||
/// Copied from wasmer_engine::SerializeError
|
||||
/// Copied from wasmer_compiler::SerializeError
|
||||
#[derive(Debug)]
|
||||
#[cfg_attr(feature = "std", derive(Error))]
|
||||
pub enum SerializeError {
|
||||
@@ -104,7 +104,7 @@ pub enum SerializeError {
|
||||
|
||||
/// The Deserialize error can occur when loading a
|
||||
/// compiled Module from a binary.
|
||||
/// Copied from wasmer_engine::DeSerializeError
|
||||
/// Copied from wasmer_compiler::DeSerializeError
|
||||
#[derive(Error, Debug)]
|
||||
pub enum DeserializeError {
|
||||
/// An IO error
|
||||
|
||||
2
lib/api/src/js/externals/mod.rs
vendored
2
lib/api/src/js/externals/mod.rs
vendored
@@ -44,7 +44,7 @@ impl Extern {
|
||||
}
|
||||
}
|
||||
|
||||
/// Create an `Extern` from an `wasmer_engine::Export`.
|
||||
/// Create an `Extern` from an `wasmer_compiler::Export`.
|
||||
pub fn from_vm_export(store: &Store, export: Export) -> Self {
|
||||
match export {
|
||||
Export::Function(f) => Self::Function(Function::from_vm_export(store, f)),
|
||||
|
||||
@@ -53,7 +53,7 @@ impl RuntimeError {
|
||||
///
|
||||
/// # Example
|
||||
/// ```
|
||||
/// let trap = wasmer_engine::RuntimeError::new("unexpected error");
|
||||
/// let trap = wasmer_compiler::RuntimeError::new("unexpected error");
|
||||
/// assert_eq!("unexpected error", trap.message());
|
||||
/// ```
|
||||
pub fn new<I: Into<String>>(message: I) -> Self {
|
||||
|
||||
Reference in New Issue
Block a user