Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix abi crates depending on compilers #541

Merged
merged 7 commits into from
Jul 10, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -53,6 +54,7 @@ members = [
"lib/kernel-loader",
"lib/kernel-net",
"lib/dev-utils",
"lib/wasi-tests",
"examples/plugin-for-example"
]

Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand All @@ -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;
Expand Down Expand Up @@ -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 changes: 31 additions & 0 deletions lib/wasi-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions lib/wasi-tests/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// nothing to see here
File renamed without changes.
File renamed without changes.
Binary file added lib/wasi-tests/wasitests/create_dir.wasm
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file added lib/wasi-tests/wasitests/envvar.wasm
Binary file not shown.
Binary file added lib/wasi-tests/wasitests/file_metadata.wasm
Binary file not shown.
Binary file added lib/wasi-tests/wasitests/fs_sandbox_test.wasm
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file added lib/wasi-tests/wasitests/hello.wasm
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added lib/wasi-tests/wasitests/mapdir.wasm
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file added lib/wasi-tests/wasitests/quine.wasm
Binary file not shown.
18 changes: 1 addition & 17 deletions lib/wasi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand All @@ -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 removed lib/wasi/wasitests/create_dir.wasm
Binary file not shown.
Binary file removed lib/wasi/wasitests/envvar.wasm
Binary file not shown.
Binary file removed lib/wasi/wasitests/file_metadata.wasm
Binary file not shown.
Binary file removed lib/wasi/wasitests/fs_sandbox_test.wasm
Binary file not shown.
Binary file removed lib/wasi/wasitests/hello.wasm
Binary file not shown.
Binary file removed lib/wasi/wasitests/mapdir.wasm
Binary file not shown.
Binary file removed lib/wasi/wasitests/quine.wasm
Binary file not shown.