Make WasmError and WasmResult public types.
This commit is contained in:
@@ -35,7 +35,9 @@ pub enum WasmError {
|
|||||||
/// code. This should never happen for validated WebAssembly code.
|
/// code. This should never happen for validated WebAssembly code.
|
||||||
#[fail(display = "Invalid input WebAssembly code at offset {}: {}", _1, _0)]
|
#[fail(display = "Invalid input WebAssembly code at offset {}: {}", _1, _0)]
|
||||||
InvalidWebAssembly {
|
InvalidWebAssembly {
|
||||||
|
/// A string describing the validation error.
|
||||||
message: &'static str,
|
message: &'static str,
|
||||||
|
/// The bytecode offset where the error occurred.
|
||||||
offset: usize,
|
offset: usize,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,8 @@ mod sections_translator;
|
|||||||
mod state;
|
mod state;
|
||||||
mod translation_utils;
|
mod translation_utils;
|
||||||
|
|
||||||
pub use environ::{DummyEnvironment, FuncEnvironment, GlobalValue, ModuleEnvironment};
|
pub use environ::{DummyEnvironment, FuncEnvironment, GlobalValue, ModuleEnvironment, WasmError,
|
||||||
|
WasmResult};
|
||||||
pub use func_translator::FuncTranslator;
|
pub use func_translator::FuncTranslator;
|
||||||
pub use module_translator::translate_module;
|
pub use module_translator::translate_module;
|
||||||
pub use translation_utils::{FunctionIndex, Global, GlobalIndex, GlobalInit, Memory, MemoryIndex,
|
pub use translation_utils::{FunctionIndex, Global, GlobalIndex, GlobalInit, Memory, MemoryIndex,
|
||||||
|
|||||||
Reference in New Issue
Block a user