Skip to content

Commit

Permalink
deprecate sys specific types
Browse files Browse the repository at this point in the history
  • Loading branch information
maminrayej committed Jan 28, 2024
1 parent fc7c89f commit f6818fb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
22 changes: 21 additions & 1 deletion lib/api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,11 +446,31 @@ mod value;
pub mod vm;

#[cfg(feature = "sys")]
mod sys;
/// sys docs
pub mod sys;

#[cfg(feature = "sys")]
pub use sys::*;

/// A compiled wasm module, ready to be instantiated.
#[deprecated(note = "Use sys::Artifact instead")]
pub type Artifact = sys::Artifact;
/// The Builder contents of `Engine`
#[deprecated(note = "Use sys::EngineBuilder instead")]
pub type EngineBuilder = sys::EngineBuilder;
/// Controls which experimental features will be enabled.
#[deprecated(note = "Use sys::Features instead")]
pub type Features = sys::Features;
/// Tunable parameters for WebAssembly compilation.
/// This is the reference implementation of the `Tunables` trait,
/// used by default.
#[deprecated(note = "Use sys::BaseTunables instead")]
pub type BaseTunables = sys::BaseTunables;
/// Configuration for the the runtime VM
/// Currently only the stack size is configurable
#[deprecated(note = "Use sys::VMConfig instead")]
pub type VMConfig = sys::VMConfig;

#[cfg(feature = "js")]
mod js;

Expand Down
2 changes: 1 addition & 1 deletion lib/api/src/sys/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub(crate) mod externals;
pub(crate) mod instance;
pub(crate) mod mem_access;
pub(crate) mod module;
mod tunables;
pub(super) mod tunables;
pub(crate) mod typed_function;

pub use crate::sys::engine::NativeEngineExt;
Expand Down

0 comments on commit f6818fb

Please sign in to comment.