Updated package versions

This commit is contained in:
Syrus
2020-04-21 22:00:36 -07:00
parent dde5f41fcc
commit b225c05b83
4 changed files with 9 additions and 7 deletions

View File

@@ -16,8 +16,8 @@ wasmer-jit = { path = "../jit", version = "0.16.2" }
wasm-common = { path = "../wasm-common", version = "0.16.2" }
indexmap = { version = "1.3.2", features = ["serde-1"] }
cfg-if = "0.1.10"
wat = { version = "1.0.14", optional = true }
thiserror = "1.0.14"
wat = { version = "1.0.15", optional = true }
thiserror = "1.0.15"
[target.'cfg(target_os = "windows")'.dependencies]
winapi = "0.3.8"

View File

@@ -11,9 +11,11 @@ use wasmer_runtime::Export;
///
/// ```ignore
/// # let my_instance = Instance::new(...);
/// // This returns an Error since the imported is a funciton, not a global.
///
/// // This results with an error: `ExportError::IncompatibleType`.
/// let missing_import: &Global = my_instance.exports.get("func")?;
/// // This returns an Error since the import doesn't exist.
///
/// // This results with an error: `ExportError::Missing`.
/// let missing_import: &Func = my_instance.exports.get("unknown")?;
/// ```
#[derive(Error, Debug)]