Skip to content

Commit

Permalink
chore: Rename wasi dir to wasiX
Browse files Browse the repository at this point in the history
Synchronise the crate name with the directory structure.

Also had to move the lib/wasix/wasix-http-client dir one layer up.

Closes #3785
  • Loading branch information
theduke committed Jun 6, 2023
1 parent fe1b440 commit 09b8303
Show file tree
Hide file tree
Showing 246 changed files with 31 additions and 31 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ wasmer-compiler-cranelift = { version = "=4.0.0-beta.1", path = "lib/compiler-cr
wasmer-compiler-singlepass = { version = "=4.0.0-beta.1", path = "lib/compiler-singlepass", optional = true }
wasmer-compiler-llvm = { version = "=4.0.0-beta.1", path = "lib/compiler-llvm", optional = true }
wasmer-emscripten = { version = "=4.0.0-beta.1", path = "lib/emscripten", optional = true }
wasmer-wasix = { version = "0.6.0", path = "lib/wasi", optional = true }
wasmer-wasix = { version = "0.6.0", path = "lib/wasix", optional = true }
wasmer-wast = { version = "=4.0.0-beta.1", path = "tests/lib/wast", optional = true }
wasi-test-generator = { version = "=4.0.0-beta.1", path = "tests/wasi-wast", optional = true }
wasmer-cache = { version = "=4.0.0-beta.1", path = "lib/cache", optional = true }
Expand Down Expand Up @@ -55,8 +55,8 @@ members = [
"lib/wai-bindgen-wasmer",
"lib/wasi-experimental-io-devices",
"lib/wasi-types",
"lib/wasi",
"lib/wasix/wasix-http-client",
"lib/wasix",
"lib/wasix-http-client",
"lib/wasm-interface",
"tests/integration/cli",
"tests/integration/ios",
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ test-js-api:
cd lib/api && wasm-pack test --node -- --no-default-features --features js-default,wat

test-js-wasi:
cd lib/wasi && wasm-pack test --node -- --no-default-features --features test-js,wasmer/js,wasmer/std
cd lib/wasix && wasm-pack test --node -- --no-default-features --features test-js,wasmer/js,wasmer/std

#####
#
Expand Down
2 changes: 1 addition & 1 deletion lib/c-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ wasmer-compiler-singlepass = { version = "=4.0.0-beta.1", path = "../compiler-si
wasmer-emscripten = { version = "=4.0.0-beta.1", path = "../emscripten", optional = true }
wasmer-middlewares = { version = "=4.0.0-beta.1", path = "../middlewares", optional = true }
wasmer-types = { version = "=4.0.0-beta.1", path = "../types" }
wasmer-wasix = { version = "0.6.0", path = "../wasi", features = ["host-fs", "host-vnet"], optional = true }
wasmer-wasix = { version = "0.6.0", path = "../wasix", features = ["host-fs", "host-vnet"], optional = true }
webc = { version = "5.0", optional = true }
virtual-fs = { version = "0.4.0", path = "../virtual-fs", optional = true, default-features = false, features = ["static-fs"] }
enumset = "1.0.2"
Expand Down
2 changes: 1 addition & 1 deletion lib/cache/src/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ mod tests {

let engine = wasmer::Engine::default();

let bytes = include_bytes!("../../wasi/tests/envvar.wasm");
let bytes = include_bytes!("../../wasix/tests/envvar.wasm");

let module = Module::from_binary(&engine, bytes).unwrap();
let key = Hash::generate(bytes);
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ wasmer-compiler-singlepass = { version = "=4.0.0-beta.1", path = "../compiler-si
wasmer-compiler-llvm = { version = "=4.0.0-beta.1", path = "../compiler-llvm", optional = true }
wasmer-emscripten = { version = "=4.0.0-beta.1", path = "../emscripten" }
wasmer-vm = { version = "=4.0.0-beta.1", path = "../vm", optional = true }
wasmer-wasix = { version = "0.6.0", path = "../wasi", features = ["logging", "webc_runner", "webc_runner_rt_wcgi", "webc_runner_rt_wasi", "webc_runner_rt_emscripten", "host-fs"] }
wasmer-wasix = { version = "0.6.0", path = "../wasix", features = ["logging", "webc_runner", "webc_runner_rt_wcgi", "webc_runner_rt_wasi", "webc_runner_rt_emscripten", "host-fs"] }
wasmer-wasix-experimental-io-devices = { version = "0.6.0", path = "../wasi-experimental-io-devices", optional = true, features = ["link_external_libs"] }
wasmer-wast = { version = "=4.0.0-beta.1", path = "../../tests/lib/wast", optional = true }
wasmer-cache = { version = "=4.0.0-beta.1", path = "../cache", features = ["blake3-pure"] }
Expand Down
2 changes: 1 addition & 1 deletion lib/sys-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ tracing = "0.1.37"
libc = { version = "^0.2", default-features = false }

[dev-dependencies]
wasmer-wasix = { path = "../wasi", version = "0.6.0" }
wasmer-wasix = { path = "../wasix", version = "0.6.0" }
wasmer = { path = "../api", version = "=4.0.0-beta.1", default-features = false, features = ["sys", "compiler", "cranelift"] }
tracing-subscriber = { version = "0.3.16", features = ["fmt"] }
tracing = "0.1.37"
2 changes: 1 addition & 1 deletion lib/wasi-experimental-io-devices/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ maintenance = { status = "experimental" }

[dependencies]
wasmer = { version = "4.0.0-beta.1", path = "../api", default-features=false }
wasmer-wasix = { version = "0.6.0", path = "../wasi", default-features=false }
wasmer-wasix = { version = "0.6.0", path = "../wasix", default-features=false }
wasmer-wasix-types = { path = "../wasi-types", version = "0.6.0" }
tracing = "0.1"
minifb = { version = "0.24.0", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion lib/wasi-web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ rust-version = "1.67"

[dependencies]
wasmer = { path = "../api", default_features = false, features = [ "js-default" ] }
wasmer-wasix = { path = "../wasi", version = "0.5.0", default-features = false, features = [ "js-default" ] }
wasmer-wasix = { path = "../wasix", version = "0.5.0", default-features = false, features = [ "js-default" ] }
#wasm-bindgen = { version = "0.2", features = [ "nightly", "serde-serialize" ] }
wasm-bindgen = { version = "0.2", features = [ "serde-serialize" ] }
wasm-bindgen-futures = "0.4"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
40 changes: 20 additions & 20 deletions lib/wasi/tests/README.md → lib/wasix/tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ We should see these four directories by default

```sh
cd ../../cli
cargo run --features compiler,cranelift -- ../wasi/tests/coreutils.wasm ls
cargo run --features compiler,cranelift -- ../wasix/tests/coreutils.wasm ls
```

Expected:
Expand All @@ -25,7 +25,7 @@ send it both to the console and to the file

```sh
cd ../../cli
echo blah | cargo run --features compiler,cranelift -- ../wasi/tests/coreutils.wasm tee /dev/stderr
echo blah | cargo run --features compiler,cranelift -- ../wasix/tests/coreutils.wasm tee /dev/stderr
```

Expected:
Expand All @@ -42,7 +42,7 @@ needs to continue to pass.

```sh
cd ../../cli
cargo run --features compiler,cranelift,debug -- ../wasi/tests/example-condvar.wasm
cargo run --features compiler,cranelift,debug -- ../wasix/tests/example-condvar.wasm
```

Expected:
Expand All @@ -68,7 +68,7 @@ Piping to cowsay should, well.... display a cow that says something

```sh
cd ../../cli
echo blah | cargo run --features compiler,cranelift,debug -- ../wasi/tests/cowsay.wasm
echo blah | cargo run --features compiler,cranelift,debug -- ../wasix/tests/cowsay.wasm
```

Expected:
Expand All @@ -91,7 +91,7 @@ in `tokio` in order to wake up the main IO thread that is blocked on an `poll_on

```sh
cd ../../cli
cargo run --features compiler,cranelift,debug -- ../wasi/tests/example-epoll.wasm
cargo run --features compiler,cranelift,debug -- ../wasix/tests/example-epoll.wasm
```

Expected:
Expand All @@ -117,7 +117,7 @@ file handles (which is needed for stdin and stdout redirection)

```sh
cd ../../cli
cargo run --features compiler,cranelift,debug -- --use sharrattj/coreutils --enable-threads ../wasi/tests/example
cargo run --features compiler,cranelift,debug -- --use sharrattj/coreutils --enable-threads ../wasix/tests/example
-execve.wasm
```

Expand All @@ -139,7 +139,7 @@ is often used for exception handling

```sh
cd ../../cli
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasi/tests/example-longjmp.wasm
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasix/tests/example-longjmp.wasm
```

Expected:
Expand All @@ -160,7 +160,7 @@ This one is initiated from `rust` code and thus has the risk of leaking memory b

```sh
cd ../../cli
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasi/tests/example-stack.wasm
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasix/tests/example-stack.wasm
```

Expected:
Expand All @@ -178,7 +178,7 @@ Simple fork example that is a crude multi-threading implementation - used by `da

```sh
cd ../../cli
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasi/tests/example-fork.wasm
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasix/tests/example-fork.wasm
```

Expected:
Expand All @@ -196,7 +196,7 @@ been recorded are preserved after a fork. The behavior is needed for `dash`

```sh
cd ../../cli
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasi/tests/example-fork-longjmp.wasm
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasix/tests/example-fork-longjmp.wasm
```

Expected:
Expand All @@ -213,7 +213,7 @@ full multi-threading with shared memory and shared compiled modules

```sh
cd ../../cli
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasi/tests/example-multi-threading.wasm
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasix/tests/example-multi-threading.wasm
```

Expected:
Expand Down Expand Up @@ -248,7 +248,7 @@ the process to write and read to this pipe.

```sh
cd ../../cli
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasi/tests/example-pipe.wasm
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasix/tests/example-pipe.wasm
```

Expected:
Expand All @@ -263,7 +263,7 @@ this text should be printed by the parent
Tests that signals can be received and processed by WASM applications

```sh
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasi/tests/example-signal.wasm
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasix/tests/example-signal.wasm
```

Note: This test requires that a signal is sent to the process asynchronously
Expand All @@ -285,7 +285,7 @@ Puts the process to sleep for 50ms

```sh
cd ../../cli
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasi/tests/example-sleep.wasm
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasix/tests/example-sleep.wasm
```

Expected:
Expand All @@ -299,7 +299,7 @@ Uses `posix_spawn` to launch a sub-process and wait on it to exit

```sh
cd ../../cli
cargo run --features compiler,cranelift,debug -- --enable-threads --use sharrattj/coreutils ../wasi/tests/example
cargo run --features compiler,cranelift,debug -- --enable-threads --use sharrattj/coreutils ../wasix/tests/example
-spawn.wasm
```

Expand All @@ -317,7 +317,7 @@ Connects to 8.8.8.8:53 over TCP to verify TCP clients work

```sh
cd ../../cli
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasi/tests/example-tcp-client.wasm
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasix/tests/example-tcp-client.wasm
```

Expected:
Expand All @@ -333,7 +333,7 @@ Waits for a connection after listening on 127.0.0.1:7878

```sh
cd ../../cli
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasi/tests/example-tcp-listener.wasm
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasix/tests/example-tcp-listener.wasm
```

In order to test this a curl command is needed below asynchronously and then it needs to be killed
Expand All @@ -355,7 +355,7 @@ Tests that thread local variables work correctly

```sh
cd ../../cli
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasi/tests/example-thread-local.wasm
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasix/tests/example-thread-local.wasm
```

Expected:
Expand Down Expand Up @@ -422,7 +422,7 @@ open file descriptors works correctly.

```sh
cd ../../cli
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasi/tests/example-vfork.wasm
cargo run --features compiler,cranelift,debug -- --enable-threads ../wasix/tests/example-vfork.wasm
```

Expected:
Expand All @@ -440,7 +440,7 @@ and mapped directories to serve HTTP content.

```sh
cd ../../cli
cargo run --features compiler,cranelift,debug -- --enable-threads --mapdir /public:/prog/deploy/wasmer-web/public ../wasi/tests/web-server.wasm -- --port 8080 --log-level trace
cargo run --features compiler,cranelift,debug -- --enable-threads --mapdir /public:/prog/deploy/wasmer-web/public ../wasix/tests/web-server.wasm -- --port 8080 --log-level trace
```

Note: This requires that a curl command be made to the HTTP server asynchronously
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/lib/wast/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ edition = "2018"
[dependencies]
anyhow = "1.0"
wasmer = { path = "../../../lib/api", version = "=4.0.0-beta.1", default-features = false }
wasmer-wasix = { path = "../../../lib/wasi", version = "0.6.0" }
wasmer-wasix = { path = "../../../lib/wasix", version = "0.6.0" }
virtual-fs = { path = "../../../lib/virtual-fs", version = "0.4.0" }
wast = "38.0"
serde = "1"
Expand Down

0 comments on commit 09b8303

Please sign in to comment.