mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-12 21:38:39 +00:00
feat(deprecated) Mimics units and values module.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use crate::{new, types::Value};
|
||||
use crate::{new, values::Value};
|
||||
use std::{convert::Infallible, error::Error};
|
||||
|
||||
pub struct Instance {
|
||||
|
||||
@@ -1,21 +1,25 @@
|
||||
#![allow(deprecated)]
|
||||
|
||||
mod functional_api;
|
||||
pub mod instance;
|
||||
pub mod module;
|
||||
pub mod types;
|
||||
pub mod units;
|
||||
|
||||
pub(crate) mod new {
|
||||
pub use wasm_common;
|
||||
pub use wasmer;
|
||||
pub use wasmer_runtime;
|
||||
}
|
||||
|
||||
pub use crate::instance::Instance;
|
||||
pub use crate::module::Module;
|
||||
pub use functional_api::{compile_with, compile_with_config, validate};
|
||||
|
||||
mod functional_api;
|
||||
pub mod instance;
|
||||
pub mod import {
|
||||
pub use crate::new::wasmer::{imports, ImportObject, ImportObjectIterator};
|
||||
}
|
||||
pub mod module;
|
||||
pub mod types;
|
||||
pub mod units;
|
||||
pub mod values {
|
||||
pub use crate::new::wasmer::{Val as Value, ValType as Type};
|
||||
}
|
||||
|
||||
pub use crate::instance::Instance;
|
||||
pub use crate::module::Module;
|
||||
pub use crate::units::{Bytes, Pages, WASM_MAX_PAGES, WASM_MIN_PAGES, WASM_PAGE_SIZE};
|
||||
pub use crate::values::Value;
|
||||
pub use functional_api::{compile_with, compile_with_config, validate};
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
use crate::new;
|
||||
|
||||
pub use new::wasmer::{Val as Value, ValType as Type};
|
||||
|
||||
pub use new::wasm_common::{
|
||||
//
|
||||
ExportType as ExportDescriptor,
|
||||
|
||||
Reference in New Issue
Block a user