mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-12 21:38:39 +00:00
Remove engine-dylib
This commit is contained in:
@@ -77,8 +77,6 @@
|
||||
//! compilation process and to store the generated executable code
|
||||
//! somewhere, either:
|
||||
//! * in-memory (with [`wasmer-engine-universal`]),
|
||||
//! * in a native shared object file (with [`wasmer-engine-dylib`],
|
||||
//! `.dylib`, `.so`, `.dll`), then load it with `dlopen`,
|
||||
//! * in a native static object file (with [`wasmer-engine-staticlib`]),
|
||||
//! in addition to emitting a C header file, which both can be linked
|
||||
//! against a sandboxed WebAssembly runtime environment for the
|
||||
@@ -324,11 +322,7 @@
|
||||
//! - `universal`
|
||||
#![cfg_attr(feature = "universal", doc = "(enabled),")]
|
||||
#![cfg_attr(not(feature = "universal"), doc = "(disabled),")]
|
||||
//! enables [the Universal engine][`wasmer-engine-universal`],
|
||||
//! - `dylib`
|
||||
#![cfg_attr(feature = "dylib", doc = "(enabled),")]
|
||||
#![cfg_attr(not(feature = "dylib"), doc = "(disabled),")]
|
||||
//! enables [the Dylib engine][`wasmer-engine-dylib`].
|
||||
//! enables [the Universal engine][`wasmer-engine-universal`].
|
||||
//!
|
||||
//! The features that set defaults come in sets that are mutually exclusive.
|
||||
//!
|
||||
@@ -350,11 +344,7 @@
|
||||
//! - `default-universal`
|
||||
#![cfg_attr(feature = "default-universal", doc = "(enabled),")]
|
||||
#![cfg_attr(not(feature = "default-universal"), doc = "(disabled),")]
|
||||
//! set the Universal engine as the default,
|
||||
//! - `default-dylib`
|
||||
#![cfg_attr(feature = "default-dylib", doc = "(enabled),")]
|
||||
#![cfg_attr(not(feature = "default-dylib"), doc = "(disabled),")]
|
||||
//! set the Dylib engine as the default.
|
||||
//! set the Universal engine as the default.
|
||||
//!
|
||||
#![cfg_attr(
|
||||
feature = "js",
|
||||
@@ -434,7 +424,6 @@
|
||||
//! [`wasmer-emscripten`]: https://docs.rs/wasmer-emscripten/
|
||||
//! [wasmer-engine]: https://docs.rs/wasmer-engine/
|
||||
//! [`wasmer-engine-universal`]: https://docs.rs/wasmer-engine-universal/
|
||||
//! [`wasmer-engine-dylib`]: https://docs.rs/wasmer-engine-dylib/
|
||||
//! [`wasmer-engine-staticlib`]: https://docs.rs/wasmer-engine-staticlib/
|
||||
//! [`wasmer-compiler-singlepass`]: https://docs.rs/wasmer-compiler-singlepass/
|
||||
//! [`wasmer-compiler-llvm`]: https://docs.rs/wasmer-compiler-llvm/
|
||||
|
||||
@@ -112,9 +112,6 @@ pub use wasmer_compiler_llvm::{LLVMOptLevel, LLVM};
|
||||
#[cfg(feature = "universal")]
|
||||
pub use wasmer_engine_universal::{Universal, UniversalArtifact, UniversalEngine};
|
||||
|
||||
#[cfg(feature = "dylib")]
|
||||
pub use wasmer_engine_dylib::{Dylib, DylibArtifact, DylibEngine};
|
||||
|
||||
/// Version number of this crate.
|
||||
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
|
||||
@@ -123,11 +120,6 @@ pub const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
#[deprecated(since = "2.0.0", note = "Please use the `universal` feature instead")]
|
||||
pub type JIT = Universal;
|
||||
|
||||
/// The Deprecated Native Engine (please use `Dylib` instead)
|
||||
#[cfg(feature = "native")]
|
||||
#[deprecated(since = "2.0.0", note = "Please use the `native` feature instead")]
|
||||
pub type Native = Dylib;
|
||||
|
||||
/// This type is deprecated, it has been replaced by TypedFunction.
|
||||
#[deprecated(
|
||||
since = "3.0.0",
|
||||
|
||||
@@ -121,9 +121,6 @@ impl Default for Store {
|
||||
if #[cfg(feature = "default-universal")] {
|
||||
wasmer_engine_universal::Universal::new(config)
|
||||
.engine()
|
||||
} else if #[cfg(feature = "default-dylib")] {
|
||||
wasmer_engine_dylib::Dylib::new(config)
|
||||
.engine()
|
||||
} else {
|
||||
compile_error!("No default engine chosen")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user