mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 13:18:20 +00:00
Moved is_wasm function from api to types crate
This commit is contained in:
@@ -41,7 +41,6 @@ mod resolver;
|
||||
mod store;
|
||||
mod trap;
|
||||
mod types;
|
||||
mod utils;
|
||||
mod wasm_bindgen_polyfill;
|
||||
|
||||
/// Implement [`WasmerEnv`] for your type with `#[derive(WasmerEnv)]`.
|
||||
@@ -75,8 +74,8 @@ pub use crate::js::types::{
|
||||
TableType, Val, ValType,
|
||||
};
|
||||
pub use crate::js::types::{Val as Value, ValType as Type};
|
||||
pub use crate::js::utils::is_wasm;
|
||||
|
||||
pub use wasmer_types::is_wasm;
|
||||
pub use wasmer_types::{
|
||||
Atomically, Bytes, ExportIndex, GlobalInit, LocalFunctionIndex, MemoryView, Pages, ValueType,
|
||||
WASM_MAX_PAGES, WASM_MIN_PAGES, WASM_PAGE_SIZE,
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
/// Check if the provided bytes are wasm-like
|
||||
pub fn is_wasm(bytes: impl AsRef<[u8]>) -> bool {
|
||||
bytes.as_ref().starts_with(b"\0asm")
|
||||
}
|
||||
Reference in New Issue
Block a user