Skip to content

Commit

Permalink
Remove the dylib and staticlib engines
Browse files Browse the repository at this point in the history
We do not use them, and it is difficult to imagine a future use-case for
them. Some of our changes touching engines already added a method or two
with `unreachable!()` so these aren't usable as-is anyway.
  • Loading branch information
nagisa committed Jan 20, 2022
1 parent 678b287 commit dcacf36
Show file tree
Hide file tree
Showing 29 changed files with 16 additions and 3,620 deletions.
90 changes: 0 additions & 90 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 0 additions & 26 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ wasmer-compiler-singlepass = { version = "=2.1.2", path = "lib/compiler-singlepa
wasmer-compiler-llvm = { version = "2.0.0", path = "lib/compiler-llvm", optional = true }
wasmer-engine = { version = "=2.1.2", path = "lib/engine", package = "wasmer-engine-near" }
wasmer-engine-universal = { version = "=2.1.2", path = "lib/engine-universal", optional = true, package = "wasmer-engine-universal-near" }
wasmer-engine-dylib = { version = "2.0.0", path = "lib/engine-dylib", optional = true }
wasmer-engine-staticlib = { version = "2.0.0", path = "lib/engine-staticlib", optional = true }
wasmer-wast = { version = "2.0.0", path = "tests/lib/wast", optional = true }
wasmer-cache = { version = "2.0.0", path = "lib/cache", optional = true }
wasmer-types = { version = "=2.1.2", path = "lib/types", package = "wasmer-types-near" }
Expand All @@ -38,9 +36,6 @@ members = [
"lib/derive",
"lib/engine",
"lib/engine-universal",
"lib/engine-dylib",
"lib/engine-staticlib",
"lib/object",
"lib/vm",
"lib/types",
"tests/lib/wast",
Expand Down Expand Up @@ -80,31 +75,20 @@ default = [
"wast",
"universal",
"singlepass",
"staticlib",
"cache",
]
engine = []
universal = [
"wasmer-engine-universal",
"engine",
]
dylib = [
"wasmer-engine-dylib",
"engine",
]
staticlib = [
"wasmer-engine-staticlib",
"engine",
]
cache = ["wasmer-cache"]
wast = ["wasmer-wast"]
wat = ["wasmer/wat"]
compiler = [
"wasmer/compiler",
"wasmer-compiler/translator",
"wasmer-engine-universal/compiler",
"wasmer-engine-dylib/compiler",
"wasmer-engine-staticlib/compiler",
]
singlepass = [
"wasmer-compiler-singlepass",
Expand All @@ -129,11 +113,6 @@ test-cranelift = [
test-llvm = [
"llvm",
]

test-dylib = [
"dylib",
"test-generator/test-dylib",
]
test-universal = [
"universal",
"test-generator/test-universal",
Expand All @@ -160,11 +139,6 @@ name = "engine-universal"
path = "examples/engine_universal.rs"
required-features = ["cranelift"]

[[example]]
name = "engine-dylib"
path = "examples/engine_dylib.rs"
required-features = ["cranelift"]

[[example]]
name = "engine-headless"
path = "examples/engine_headless.rs"
Expand Down
92 changes: 0 additions & 92 deletions examples/engine_dylib.rs

This file was deleted.

9 changes: 1 addition & 8 deletions fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@ wasmer-compiler-cranelift = { path = "../lib/compiler-cranelift", optional = tru
wasmer-compiler-llvm = { path = "../lib/compiler-llvm", optional = true }
wasmer-compiler-singlepass = { path = "../lib/compiler-singlepass", package = "wasmer-compiler-singlepass-near", optional = true }
wasmer-engine-universal = { path = "../lib/engine-universal", package = "wasmer-engine-universal-near", optional = true }
wasmer-engine-dylib = { path = "../lib/engine-dylib", optional = true }
wasmprinter = "0.2"

[features]
cranelift = [ "wasmer-compiler-cranelift" ]
llvm = [ "wasmer-compiler-llvm" ]
singlepass = [ "wasmer-compiler-singlepass" ]
universal = [ "wasmer-engine-universal" ]
dylib = [ "wasmer-engine-dylib" ]

[[bin]]
name = "equivalence_universal"
Expand All @@ -52,12 +50,7 @@ name = "metering"
path = "fuzz_targets/metering.rs"
required-features = ["universal", "cranelift"]

[[bin]]
name = "dylib_cranelift"
path = "fuzz_targets/dylib_cranelift.rs"
required-features = ["dylib", "cranelift"]

[[bin]]
name = "deterministic"
path = "fuzz_targets/deterministic.rs"
required-features = ["universal", "dylib", "cranelift", "llvm", "singlepass"]
required-features = ["universal", "cranelift", "llvm", "singlepass"]
Loading

0 comments on commit dcacf36

Please sign in to comment.