[dependencies.anyhow]
default-features = false
features = ["std"]
version = "1.0.22"
[dependencies.bitflags]
version = "2.0"
[dependencies.cap-fs-ext]
optional = true
version = "3.4.1"
[dependencies.cap-rand]
features = ["small_rng"]
version = "3.4.1"
[dependencies.cap-std]
version = "3.4.1"
[dependencies.cap-time-ext]
optional = true
version = "3.4.1"
[dependencies.fs-set-times]
optional = true
version = "0.20.1"
[dependencies.io-lifetimes]
default-features = false
optional = true
version = "2.0.3"
[dependencies.libc]
default-features = true
optional = true
version = "0.2.112"
[dependencies.log]
default-features = false
version = "0.4.8"
[dependencies.system-interface]
features = ["cap_std_impls", "cap_std_impls"]
optional = true
version = "0.27.1"
[dependencies.thiserror]
version = "1.0.43"
[dependencies.tokio]
features = ["rt", "time", "rt", "fs", "time", "io-util", "net", "io-std", "rt-multi-thread"]
optional = true
version = "1.30.0"
[dependencies.tracing]
version = "0.1.26"
[dependencies.wasmtime]
default-features = false
features = ["runtime"]
optional = true
version = "27.0.0"
[dependencies.wiggle]
default-features = false
version = "=27.0.0"
[dev-dependencies.tempfile]
version = "3.1.0"
[dev-dependencies.test-log]
default-features = false
features = ["trace"]
version = "0.2"
[dev-dependencies.tokio]
features = ["rt", "time", "macros", "rt-multi-thread"]
version = "1.30.0"
[dev-dependencies.tracing-subscriber]
default-features = false
features = ["fmt", "env-filter", "ansi", "tracing-log"]
version = "0.3.1"
[dev-dependencies.wasmtime]
default-features = false
features = ["cranelift", "async", "runtime"]
version = "27.0.0"
[features]
default = ["trace_log", "wasmtime", "sync"]
exit = ["wasmtime", "dep:libc"]
sync = ["dep:cap-fs-ext", "dep:cap-time-ext", "dep:fs-set-times", "dep:system-interface", "dep:io-lifetimes"]
tokio = ["sync", "wasmtime/async", "wiggle/wasmtime_async", "dep:tokio"]
trace_log = ["wiggle/tracing_log", "tracing/log"]
wasmtime = ["dep:wasmtime", "wiggle/wasmtime"]
wiggle_metadata = ["wiggle/wiggle_metadata"]
[lib]
name = "wasi_common"
path = "src/lib.rs"
[lints.clippy]
clone_on_copy = "warn"
manual_strip = "warn"
map_clone = "warn"
uninlined_format_args = "warn"
unnecessary_cast = "warn"
unnecessary_fallible_conversions = "warn"
unnecessary_mut_passed = "warn"
unnecessary_to_owned = "warn"
[lints.clippy.all]
level = "allow"
priority = -1
[lints.rust]
trivial_numeric_casts = "warn"
unstable_features = "warn"
unused-lifetimes = "warn"
unused-macro-rules = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"
[lints.rust.unexpected_cfgs]
check-cfg = ["cfg(pulley_tail_calls)"]
level = "warn"
priority = 0
[package]
authors = ["The Wasmtime Project Developers"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
categories = ["wasm"]
description = "WASI implementation in Rust"
edition = "2021"
include = ["src/**/*", "tests/**/*", "witx", "README.md", "LICENSE", "build.rs"]
keywords = ["webassembly", "wasm"]
license = "Apache-2.0 WITH LLVM-exception"
name = "wasi-common"
readme = "README.md"
repository = "https://github.com/bytecodealliance/wasmtime"
rust-version = "1.80.0"
version = "27.0.0"
[package.metadata.docs.rs]
all-features = true
[target."cfg(unix)".dependencies.rustix]
features = ["fs", "event"]
version = "0.38.31"
[target."cfg(windows)".dependencies.io-extras]
version = "0.18.1"
[target."cfg(windows)".dependencies.rustix]
features = ["net"]
version = "0.38.31"
[target."cfg(windows)".dependencies.windows-sys]
features = ["Win32_Foundation", "Win32_Networking_WinSock"]
version = "0.59.0"
[[test]]
name = "all"
path = "tests/all/main.rs"