blob: 3d572a22c5e7ab1a02710ab74f0f7fcb7b90d608 (
plain)
#![no_std]
#![forbid(unsafe_code)]
#![cfg_attr(not(feature = "std"), feature(error_in_core))]
mod std;
extern crate alloc;
mod error;
pub mod instructions;
pub mod module;
pub use error::*;
pub use module::Module;
pub struct Store {}
pub struct Instance {}
#[cfg(test)]
mod tests {
use super::*;
use crate::{error::Result, Module};
use std::dbg;
#[test]
fn it_works() -> Result<()> {
let wasm = include_bytes!("../../../examples/wasm/helloworld.wasm");
let module = Module::new(wasm)?;
dbg!(module);
Ok(())
}
}
|