mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-24 18:02:13 +00:00
fix abi crates depending on compilers
This commit is contained in:
parent
2fa58097c2
commit
5bf491857b
13
Cargo.lock
generated
13
Cargo.lock
generated
@ -1432,6 +1432,7 @@ dependencies = [
|
||||
"wasmer-runtime-core 0.5.4",
|
||||
"wasmer-singlepass-backend 0.5.4",
|
||||
"wasmer-wasi 0.5.4",
|
||||
"wasmer-wasi-tests 0.5.4",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -1614,17 +1615,25 @@ version = "0.5.4"
|
||||
dependencies = [
|
||||
"byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"generational-arena 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"hashbrown 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"libc 0.2.57 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"rand 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"wasmer-runtime-core 0.5.4",
|
||||
"winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "wasmer-wasi-tests"
|
||||
version = "0.5.4"
|
||||
dependencies = [
|
||||
"glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"wasmer-clif-backend 0.5.4",
|
||||
"wasmer-dev-utils 0.5.4",
|
||||
"wasmer-llvm-backend 0.5.4",
|
||||
"wasmer-runtime-core 0.5.4",
|
||||
"wasmer-singlepass-backend 0.5.4",
|
||||
"winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"wasmer-wasi 0.5.4",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
@ -35,6 +35,7 @@ wasmer-llvm-backend = { path = "lib/llvm-backend", optional = true }
|
||||
wasmer-wasi = { path = "lib/wasi", optional = true }
|
||||
wasmer-kernel-loader = { path = "lib/kernel-loader", optional = true }
|
||||
wasmer-dev-utils = { path = "lib/dev-utils", optional = true }
|
||||
wasmer-wasi-tests = { path = "lib/wasi-tests", optional = true }
|
||||
|
||||
[workspace]
|
||||
members = [
|
||||
@ -53,6 +54,7 @@ members = [
|
||||
"lib/kernel-loader",
|
||||
"lib/kernel-net",
|
||||
"lib/dev-utils",
|
||||
"lib/wasi-tests",
|
||||
"examples/plugin-for-example"
|
||||
]
|
||||
|
||||
|
12
Makefile
12
Makefile
@ -8,7 +8,7 @@ generate-emtests:
|
||||
WASM_EMSCRIPTEN_GENERATE_EMTESTS=1 cargo build -p wasmer-emscripten --release
|
||||
|
||||
generate-wasitests:
|
||||
WASM_WASI_GENERATE_WASITESTS=1 cargo build -p wasmer-wasi --release
|
||||
WASM_WASI_GENERATE_WASITESTS=1 cargo build -p wasmer-wasi-tests --release
|
||||
|
||||
generate: generate-spectests generate-emtests generate-wasitests
|
||||
|
||||
@ -54,13 +54,13 @@ middleware: middleware-singlepass middleware-cranelift middleware-llvm
|
||||
|
||||
# Wasitests
|
||||
wasitests-singlepass:
|
||||
cargo test --manifest-path lib/wasi/Cargo.toml --release --features singlepass -- --test-threads=1
|
||||
cargo test --manifest-path lib/wasi-tests/Cargo.toml --release --features singlepass -- --test-threads=1
|
||||
|
||||
wasitests-cranelift:
|
||||
cargo test --manifest-path lib/wasi/Cargo.toml --release --features clif -- --test-threads=1
|
||||
cargo test --manifest-path lib/wasi-tests/Cargo.toml --release --features clif -- --test-threads=1
|
||||
|
||||
wasitests-llvm:
|
||||
cargo test --manifest-path lib/wasi/Cargo.toml --release --features llvm -- --test-threads=1
|
||||
cargo test --manifest-path lib/wasi-tests/Cargo.toml --release --features llvm -- --test-threads=1
|
||||
|
||||
wasitests: wasitests-singlepass wasitests-cranelift wasitests-llvm
|
||||
|
||||
@ -83,7 +83,7 @@ capi:
|
||||
cargo test -p wasmer-runtime-c-api --release
|
||||
|
||||
test-rest: capi
|
||||
cargo test --release --all --exclude wasmer-runtime-c-api --exclude wasmer-emscripten --exclude wasmer-spectests --exclude wasmer-wasi --exclude wasmer-middleware-common --exclude wasmer-singlepass-backend --exclude wasmer-clif-backend --exclude wasmer-llvm-backend
|
||||
cargo test --release --all --exclude wasmer-runtime-c-api --exclude wasmer-emscripten --exclude wasmer-spectests --exclude wasmer-wasi --exclude wasmer-middleware-common --exclude wasmer-singlepass-backend --exclude wasmer-clif-backend --exclude wasmer-llvm-backend --exclude wasmer-wasi-tests
|
||||
|
||||
circleci-clean:
|
||||
@if [ ! -z "${CIRCLE_JOB}" ]; then rm -f /home/circleci/project/target/debug/deps/libcranelift_wasm* && rm -f /Users/distiller/project/target/debug/deps/libcranelift_wasm*; fi;
|
||||
@ -147,4 +147,4 @@ publish-release:
|
||||
# cargo install cargo-deps
|
||||
# must install graphviz for `dot`
|
||||
dep-graph:
|
||||
cargo deps --optional-deps --filter wasmer-wasi wasmer-kernel-loader wasmer-dev-utils wasmer-llvm-backend wasmer-emscripten wasmer-runtime-core wasmer-runtime wasmer-middleware-common wasmer-singlepass-backend wasmer-clif-backend wasmer --manifest-path Cargo.toml | dot -Tpng > wasmer_depgraph.png
|
||||
cargo deps --optional-deps --filter wasmer-wasi wasmer-wasi-tests wasmer-kernel-loader wasmer-dev-utils wasmer-llvm-backend wasmer-emscripten wasmer-runtime-core wasmer-runtime wasmer-middleware-common wasmer-singlepass-backend wasmer-clif-backend wasmer --manifest-path Cargo.toml | dot -Tpng > wasmer_depgraph.png
|
||||
|
31
lib/wasi-tests/Cargo.toml
Normal file
31
lib/wasi-tests/Cargo.toml
Normal file
@ -0,0 +1,31 @@
|
||||
[package]
|
||||
name = "wasmer-wasi-tests"
|
||||
version = "0.5.4"
|
||||
description = "Tests for our WASI implementation"
|
||||
license = "MIT"
|
||||
authors = ["The Wasmer Engineering Team <engineering@wasmer.io>"]
|
||||
edition = "2018"
|
||||
publish = false
|
||||
build = "build/mod.rs"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
wasmer-runtime-core = { path = "../runtime-core", version = "0.5.4" }
|
||||
wasmer-wasi = { path = "../wasi", version = "0.5.4" }
|
||||
# hack to get tests to work
|
||||
wasmer-singlepass-backend = { path = "../singlepass-backend", version = "0.5.4", optional = true }
|
||||
wasmer-llvm-backend = { path = "../llvm-backend", version = "0.5.4", optional = true }
|
||||
|
||||
|
||||
[build-dependencies]
|
||||
glob = "0.2.11"
|
||||
|
||||
[dev-dependencies]
|
||||
wasmer-clif-backend = { path = "../clif-backend", version = "0.5.4" }
|
||||
wasmer-dev-utils = { path = "../dev-utils", version = "0.5.4"}
|
||||
|
||||
[features]
|
||||
clif = []
|
||||
singlepass = ["wasmer-singlepass-backend"]
|
||||
llvm = ["wasmer-llvm-backend"]
|
1
lib/wasi-tests/src/lib.rs
Normal file
1
lib/wasi-tests/src/lib.rs
Normal file
@ -0,0 +1 @@
|
||||
// nothing to see here
|
BIN
lib/wasi-tests/wasitests/create_dir.wasm
Executable file
BIN
lib/wasi-tests/wasitests/create_dir.wasm
Executable file
Binary file not shown.
BIN
lib/wasi-tests/wasitests/envvar.wasm
Executable file
BIN
lib/wasi-tests/wasitests/envvar.wasm
Executable file
Binary file not shown.
BIN
lib/wasi-tests/wasitests/file_metadata.wasm
Executable file
BIN
lib/wasi-tests/wasitests/file_metadata.wasm
Executable file
Binary file not shown.
BIN
lib/wasi-tests/wasitests/fs_sandbox_test.wasm
Executable file
BIN
lib/wasi-tests/wasitests/fs_sandbox_test.wasm
Executable file
Binary file not shown.
BIN
lib/wasi-tests/wasitests/hello.wasm
Executable file
BIN
lib/wasi-tests/wasitests/hello.wasm
Executable file
Binary file not shown.
BIN
lib/wasi-tests/wasitests/mapdir.wasm
Executable file
BIN
lib/wasi-tests/wasitests/mapdir.wasm
Executable file
Binary file not shown.
BIN
lib/wasi-tests/wasitests/quine.wasm
Executable file
BIN
lib/wasi-tests/wasitests/quine.wasm
Executable file
Binary file not shown.
@ -6,7 +6,6 @@ license = "MIT"
|
||||
authors = ["The Wasmer Engineering Team <engineering@wasmer.io>"]
|
||||
repository = "https://github.com/wasmerio/wasmer"
|
||||
edition = "2018"
|
||||
build = "build/mod.rs"
|
||||
|
||||
[dependencies]
|
||||
wasmer-runtime-core = { path = "../runtime-core", version = "0.5.4" }
|
||||
@ -17,21 +16,6 @@ hashbrown = "0.1.8"
|
||||
generational-arena = "0.2.2"
|
||||
log = "0.4.6"
|
||||
byteorder = "1.3.1"
|
||||
# hack to get tests to work
|
||||
wasmer-singlepass-backend = { path = "../singlepass-backend", version = "0.5.4", optional = true }
|
||||
wasmer-llvm-backend = { path = "../llvm-backend", version = "0.5.4", optional = true }
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
winapi = "0.3"
|
||||
|
||||
[build-dependencies]
|
||||
glob = "0.2.11"
|
||||
|
||||
[dev-dependencies]
|
||||
wasmer-clif-backend = { path = "../clif-backend", version = "0.5.4" }
|
||||
wasmer-dev-utils = { path = "../dev-utils", version = "0.5.4"}
|
||||
|
||||
[features]
|
||||
clif = []
|
||||
singlepass = ["wasmer-singlepass-backend"]
|
||||
llvm = ["wasmer-llvm-backend"]
|
||||
winapi = "0.3"
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user