Path: blob/main/crates/wasi-common/Cargo.toml
3089 views
[package]1name = "wasi-common"2version.workspace = true3authors.workspace = true4description = "WASI implementation in Rust"5license = "Apache-2.0 WITH LLVM-exception"6categories = ["wasm"]7keywords = ["webassembly", "wasm"]8repository = "https://github.com/bytecodealliance/wasmtime"9readme = "README.md"10edition.workspace = true11rust-version.workspace = true12include = ["src/**/*", "tests/**/*", "witx", "README.md", "LICENSE", "build.rs"]1314[lints]15workspace = true1617[dependencies]18thiserror = { workspace = true }19wiggle = { workspace = true }20tracing = { workspace = true }21cap-std = { workspace = true }22cap-rand = { workspace = true }23bitflags = { workspace = true }24log = { workspace = true }25async-trait = { workspace = true }26wasmtime-environ = { workspace = true }2728# Optional, enabled by wasmtime feature:29wasmtime = { workspace = true, optional = true, features = ['runtime'] }30# Optional, enabled by sync feature:31cap-fs-ext = { workspace = true, optional = true }32cap-time-ext = { workspace = true, optional = true }33fs-set-times = { workspace = true, optional = true }34system-interface = { workspace = true, features = ["cap_std_impls"], optional = true }35io-lifetimes = { workspace = true, optional = true }36# Optional, enabled by tokio feature:37tokio = { workspace = true, features = [ "rt", "fs", "time", "io-util", "net", "io-std", "rt-multi-thread"], optional = true }3839# Optional, enabled by exit feature:40libc = { workspace = true, optional = true }4142[target.'cfg(unix)'.dependencies]43rustix = { workspace = true, features = ["fs", "event"] }4445[target.'cfg(windows)'.dependencies]46io-extras = { workspace = true }47rustix = { workspace = true, features = ["net"] }4849[target.'cfg(windows)'.dependencies.windows-sys]50workspace = true51features = [52"Win32_Foundation",53"Win32_Networking_WinSock",54]5556[dev-dependencies]57wasi-common = { path = '.', features = ['tokio'] }58tempfile = { workspace = true }59test-log = { workspace = true }60tracing-subscriber = { workspace = true }61wasmtime = { workspace = true, features = ['cranelift', 'async', 'runtime'] }62test-programs-artifacts = { workspace = true }63tokio = { workspace = true, features = ['macros', 'rt-multi-thread'] }6465[features]66default = ["trace_log", "wasmtime", "sync"]67# This feature enables the `tracing` logs in the calls to target the `log`68# ecosystem of backends (e.g. `env_logger`. Disable this if you want to use69# `tracing-subscriber`.70trace_log = [ "wiggle/tracing_log", "tracing/log" ]71# Need to make the wiggle_metadata feature available to consumers of this72# crate if they want the snapshots to have metadata available.73wiggle_metadata = ["wiggle/wiggle_metadata"]74# This feature enables integration with wasmtime.75wasmtime = [76"dep:wasmtime",77"wiggle/wasmtime",78]79# This feature enables an implementation of the Wasi traits for a80# synchronous wasmtime embedding.81sync = [82"dep:cap-fs-ext",83"dep:cap-time-ext",84"dep:fs-set-times",85"dep:system-interface",86"dep:io-lifetimes",87]88tokio = [89"sync",90"wasmtime/async",91"wiggle/wasmtime_async",92"dep:tokio",93]94exit = [ "wasmtime", "dep:libc" ]9596[package.metadata.docs.rs]97all-features = true9899[[test]]100name = "all"101102103