mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-13 00:51:20 +00:00
Improve runtime docs and add readme (#118)
* Add crate-level documentation * add runtime readme * Fix lint
This commit is contained in:
@ -140,6 +140,7 @@ pub enum Error {
|
||||
CompileError(CompileError),
|
||||
LinkError(Vec<LinkError>),
|
||||
RuntimeError(RuntimeError),
|
||||
ResolveError(ResolveError),
|
||||
CallError(CallError),
|
||||
}
|
||||
|
||||
@ -167,6 +168,12 @@ impl From<Box<RuntimeError>> for Box<Error> {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Box<ResolveError>> for Box<Error> {
|
||||
fn from(resolve_err: Box<ResolveError>) -> Self {
|
||||
Box::new(Error::ResolveError(*resolve_err))
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Box<CallError>> for Box<Error> {
|
||||
fn from(call_err: Box<CallError>) -> Self {
|
||||
Box::new(Error::CallError(*call_err))
|
||||
|
Reference in New Issue
Block a user