Added API compatibility layer

This commit is contained in:
Syrus Akbary
2021-06-02 00:29:55 -07:00
parent f701789096
commit 2b69176a86
5 changed files with 39 additions and 6 deletions

View File

@@ -370,3 +370,12 @@ pub use wasmer_engine_dylib::{Dylib, DylibArtifact, DylibEngine};
/// Version number of this crate.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
// Deprecated
#[cfg(feature = "jit")]
#[deprecated(since = "2.0.0", note = "Please use the `universal` feature instead")]
pub type JIT = Universal;
#[cfg(feature = "native")]
#[deprecated(since = "2.0.0", note = "Please use the `native` feature instead")]
pub type Native = Dylib;