Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

2.5 KB
Raw Blame
[package]
name = "wasmtime-wasi"
version.workspace = true
authors.workspace = true
description = "WASI implementation in Rust"
license = "Apache-2.0 WITH LLVM-exception"
categories = ["wasm"]
keywords = ["webassembly", "wasm"]
repository = "https://github.com/bytecodealliance/wasmtime"
edition.workspace = true
rust-version.workspace = true
include = ["src/**/*", "README.md", "LICENSE", "witx/*", "wit/**/*", "tests/*"]

[lints]
workspace = true

[package.metadata.docs.rs]
all-features = true

[dependencies]
wasmtime = { workspace = true, features = ["runtime", "std"] }
wasmtime-wasi-io = { workspace = true, features = ["std"] }
wiggle = { workspace = true, optional = true, features = ["wasmtime"] }
tokio = { workspace = true,  features = ["time", "sync", "io-std", "io-util", "rt", "rt-multi-thread", "net"] }
bytes = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true, features = ["std", "attributes"] }
bitflags = { workspace = true }
async-trait = { workspace = true }
futures = { workspace = true }
url = { workspace = true }
rand = { workspace = true, features = ['std_rng', 'thread_rng'] }

[dev-dependencies]
tokio = { workspace = true, features = ["time", "sync", "io-std", "io-util", "rt", "rt-multi-thread", "net", "macros", "fs"] }
test-log = { workspace = true }
tracing-subscriber = { workspace = true }
test-programs-artifacts = { workspace = true }
tempfile = { workspace = true }
wasmtime = { workspace = true, features = ['default', 'incremental-cache'] }
wasmtime-test-util = { workspace = true }
env_logger = { workspace = true }

[target.'cfg(unix)'.dependencies]
rustix = { workspace = true, features = ["event", "fs", "net", "time"] }

[target.'cfg(target_os = "android")'.dependencies]
libc = { workspace = true }

[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
rustix-linux-procfs = "0.1.1"

[target.'cfg(windows)'.dependencies]
rustix = { workspace = true, features = ["event", "net"] }

[target.'cfg(windows)'.dependencies.windows-sys]
workspace = true
features = [
  "Wdk_Storage_FileSystem",
  "Win32_Foundation",
  "Win32_Storage_FileSystem",
  "Win32_System_IO",
  "Win32_System_Ioctl",
  "Win32_System_Performance",
  "Win32_System_SystemServices",
]

[features]
default = ["p1", "p2", "p3"]
p0 = ["p1"]
p1 = ["dep:wiggle", "p2"]
p2 = ["wasmtime/component-model", "wasmtime/async"]
p3 = [
    "wasmtime/component-model-async",
    "wasmtime/component-model-bytes",
]

[[test]]
name = "process_stdin"
harness = false