mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-13 13:58:38 +00:00
Updated package versions
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user