Browse Source

introduce wasi-legacy-implementation feature to wasmtime-cli

pch/cli_wasi_legacy
Pat Hickey 9 months ago
committed by Pat Hickey
parent
commit
6e35f5406c
  1. 2
      .github/workflows/main.yml
  2. 6
      Cargo.toml

2
.github/workflows/main.yml

@ -304,6 +304,8 @@ jobs:
- run: cargo check -p wasmtime-cli --no-default-features
- run: cargo check -p wasmtime-cli --no-default-features --features run
- run: cargo check -p wasmtime-cli --no-default-features --features run,component-model
- run: cargo check -p wasmtime-cli --no-default-features --features run,component-model,serve
- run: cargo check -p wasmtime-cli --no-default-features --features run,wasi-legacy-implementation
- run: cargo check -p wasmtime-cli --no-default-features --features compile
- run: cargo check -p wasmtime-cli --no-default-features --features compile,cranelift
- run: cargo check -p wasmtime-cli --no-default-features --features compile,cranelift,component-model

6
Cargo.toml

@ -310,6 +310,7 @@ default = [
"config",
# On-by-default WASI features
"wasi-legacy-implementation",
"wasi-nn",
"wasi-threads",
"wasi-http",
@ -356,7 +357,8 @@ disable-logging = ["log/max_level_off", "tracing/max_level_off"]
# These features are all included in the `default` set above and this is
# the internal mapping for what they enable in Wasmtime itself.
wasi-nn = ["dep:wasmtime-wasi-nn"]
wasi-threads = ["dep:wasmtime-wasi-threads"]
wasi-threads = ["wasi-legacy-implementation", "dep:wasmtime-wasi-threads"]
wasi-legacy-implementation = ["dep:wasi-common"]
wasi-http = ["component-model", "dep:wasmtime-wasi-http", "dep:tokio", "dep:hyper"]
pooling-allocator = ["wasmtime/pooling-allocator", "wasmtime-cli-flags/pooling-allocator"]
component-model = [
@ -385,7 +387,7 @@ explore = ["dep:wasmtime-explorer"]
wast = ["dep:wasmtime-wast"]
config = ["cache"]
compile = ["cranelift"]
run = ["dep:wasmtime-wasi", "wasmtime/runtime", "wasmtime-runtime", "dep:listenfd", "dep:wasi-common"]
run = ["dep:wasmtime-wasi", "wasmtime/runtime", "wasmtime-runtime", "dep:listenfd"]
[[test]]
name = "host_segfault"

Loading…
Cancel
Save