# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.78.0" name = "wasi-common" version = "25.0.3" authors = ["The Wasmtime Project Developers"] build = false include = [ "src/**/*", "tests/**/*", "witx", "README.md", "LICENSE", "build.rs", ] autobins = false autoexamples = false autotests = false autobenches = false description = "WASI implementation in Rust" readme = "README.md" keywords = [ "webassembly", "wasm", ] categories = ["wasm"] license = "Apache-2.0 WITH LLVM-exception" repository = "https://github.com/bytecodealliance/wasmtime" [package.metadata.docs.rs] all-features = true [lib] name = "wasi_common" path = "src/lib.rs" [[test]] name = "all" path = "tests/all/main.rs" [dependencies.anyhow] version = "1.0.22" features = ["std"] default-features = false [dependencies.bitflags] version = "2.0" [dependencies.cap-fs-ext] version = "3.4.1" optional = true [dependencies.cap-rand] version = "3.4.1" features = ["small_rng"] [dependencies.cap-std] version = "3.4.1" [dependencies.cap-time-ext] version = "3.4.1" optional = true [dependencies.fs-set-times] version = "0.20.1" optional = true [dependencies.io-lifetimes] version = "2.0.3" optional = true default-features = false [dependencies.libc] version = "0.2.112" optional = true default-features = true [dependencies.log] version = "0.4.8" default-features = false [dependencies.system-interface] version = "0.27.1" features = [ "cap_std_impls", "cap_std_impls", ] optional = true [dependencies.thiserror] version = "1.0.43" [dependencies.tokio] version = "1.30.0" features = [ "rt", "time", "rt", "fs", "time", "io-util", "net", "io-std", "rt-multi-thread", ] optional = true [dependencies.tracing] version = "0.1.26" [dependencies.wasmtime] version = "25.0.3" features = ["runtime"] optional = true default-features = false [dependencies.wiggle] version = "=25.0.3" default-features = false [dev-dependencies.tempfile] version = "3.1.0" [dev-dependencies.test-log] version = "0.2" features = ["trace"] default-features = false [dev-dependencies.tokio] version = "1.30.0" features = [ "rt", "time", "macros", "rt-multi-thread", ] [dev-dependencies.tracing-subscriber] version = "0.3.1" features = [ "fmt", "env-filter", "ansi", "tracing-log", ] default-features = false [dev-dependencies.wasmtime] version = "25.0.3" features = [ "cranelift", "async", "runtime", ] default-features = false [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"] [target."cfg(unix)".dependencies.rustix] version = "0.38.31" features = [ "fs", "event", ] [target."cfg(windows)".dependencies.io-extras] version = "0.18.1" [target."cfg(windows)".dependencies.once_cell] version = "1.12.0" default-features = false [target."cfg(windows)".dependencies.rustix] version = "0.38.31" features = ["net"] [target."cfg(windows)".dependencies.windows-sys] version = "0.52.0" features = [ "Win32_Foundation", "Win32_Networking_WinSock", ] [lints.clippy] clone_on_copy = "warn" manual_strip = "warn" map_clone = "warn" uninlined_format_args = "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_extern_crates = "warn" unused_import_braces = "warn"