mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-10 14:48:27 +00:00
api/sys: Replace ImportObject with new type Imports
This commit is contained in:
@@ -156,8 +156,8 @@
|
||||
//! [`imports`] macro:
|
||||
//!
|
||||
//! ```
|
||||
//! # use wasmer::{imports, Function, Memory, MemoryType, Store, ImportObject};
|
||||
//! # fn imports_example(store: &Store) -> ImportObject {
|
||||
//! # use wasmer::{imports, Function, Memory, MemoryType, Store, Imports};
|
||||
//! # fn imports_example(store: &Store) -> Imports {
|
||||
//! let memory = Memory::new(&store, MemoryType::new(1, None, false)).unwrap();
|
||||
//! imports! {
|
||||
//! "env" => {
|
||||
|
||||
Reference in New Issue
Block a user