Use standard API for js and sys for Module. Added Engine in js

This commit is contained in:
Syrus Akbary
2023-01-27 17:10:54 +01:00
parent 6e850dbcf8
commit d09a76ec5f
17 changed files with 535 additions and 692 deletions

View File

@@ -429,6 +429,9 @@ compile_error!(
"The `js` feature must be enabled only for the `wasm32` target (either `wasm32-unknown-unknown` or `wasm32-wasi`)."
);
mod engine;
mod module;
#[cfg(feature = "sys")]
mod sys;
@@ -441,5 +444,8 @@ mod js;
#[cfg(feature = "js")]
pub use js::*;
pub use engine::{AsEngineRef, Engine};
pub use module::{IoCompileError, Module};
mod into_bytes;
pub use into_bytes::IntoBytes;