From 47dfb141c37e38210647884547a901b7b0718118 Mon Sep 17 00:00:00 2001 From: "M.Amin Rayej" Date: Mon, 29 Jan 2024 01:35:43 +0330 Subject: [PATCH] gate the re-exports --- lib/api/src/lib.rs | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/lib/api/src/lib.rs b/lib/api/src/lib.rs index 8aa0c5af0..40fe18c60 100644 --- a/lib/api/src/lib.rs +++ b/lib/api/src/lib.rs @@ -446,29 +446,34 @@ mod value; pub mod vm; #[cfg(feature = "sys")] -/// sys docs +/// sys pub mod sys; #[cfg(feature = "sys")] pub use sys::*; -/// A compiled wasm module, ready to be instantiated. +#[cfg(feature = "sys")] #[deprecated(note = "Use sys::Artifact instead")] +/// A compiled wasm module, ready to be instantiated. pub type Artifact = sys::Artifact; -/// The Builder contents of `Engine` +#[cfg(feature = "sys")] #[deprecated(note = "Use sys::EngineBuilder instead")] +/// The Builder contents of `Engine` pub type EngineBuilder = sys::EngineBuilder; -/// Controls which experimental features will be enabled. +#[cfg(feature = "sys")] #[deprecated(note = "Use sys::Features instead")] +/// Controls which experimental features will be enabled. pub type Features = sys::Features; +#[cfg(feature = "sys")] +#[deprecated(note = "Use sys::BaseTunables instead")] /// 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; +#[cfg(feature = "sys")] +#[deprecated(note = "Use sys::VMConfig instead")] /// 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")]