* Port wasi-common to io-lifetimes. This ports wasi-common from unsafe-io to io-lifetimes. Ambient authority is now indicated via calls to `ambient_authority()` from the ambient-authority crate, rather than using `unsafe` blocks. The `GetSetFdFlags::set_fd_flags` function is now split into two phases, to simplify lifetimes in implementations which need to close and re-open the underlying file. * Use posish for errno values instead of libc. This eliminates one of the few remaining direct libc dependencies. * Port to posish::io::poll. Use posish::io::poll instead of calling libc directly. This factors out more code from Wasmtime, and eliminates the need to manipulate raw file descriptors directly. And, this eliminates the last remaining direct dependency on libc in wasi-common. * Port wasi-c-api to io-lifetimes. * Update to posish 0.16.0. * Embeded NULs in filenames now get `EINVAL` instead of `EILSEQ`. * Accept either `EILSEQ` or `EINVAL` for embedded NULs. * Bump the nightly toolchain to 2021-07-12. This fixes build errors on the semver crate, which as of this writing builds with latest nightly and stable but not 2021-04-11, the old pinned version. * Have cap-std-sync re-export ambient_authority so that users get the same version.
48 lines
1.5 KiB
TOML
48 lines
1.5 KiB
TOML
[package]
|
|
name = "wasi-common"
|
|
version = "0.28.0"
|
|
authors = ["The Wasmtime Project Developers"]
|
|
description = "WASI implementation in Rust"
|
|
license = "Apache-2.0 WITH LLVM-exception"
|
|
categories = ["wasm"]
|
|
keywords = ["webassembly", "wasm"]
|
|
repository = "https://github.com/bytecodealliance/wasmtime"
|
|
readme = "README.md"
|
|
edition = "2018"
|
|
include = ["src/**/*", "WASI/phases/**/*", "README.md", "LICENSE", "build.rs"]
|
|
build = "build.rs"
|
|
|
|
# This doesn't actually link to a native library, but it allows us to set env
|
|
# vars like `DEP_WASI_COMMON_19_*` for crates that have build scripts and depend
|
|
# on this crate, allowing other crates to use the same witx files.
|
|
links = "wasi-common-19"
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
thiserror = "1.0"
|
|
wiggle = { path = "../wiggle", default-features = false, version = "0.28.0" }
|
|
tracing = "0.1.19"
|
|
cap-std = "0.16.0"
|
|
cap-rand = "0.16.0"
|
|
bitflags = "1.2"
|
|
io-lifetimes = "0.2.0"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
posish = "0.16.0"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
winapi = "0.3"
|
|
|
|
[badges]
|
|
maintenance = { status = "actively-developed" }
|
|
|
|
[features]
|
|
default = ["trace_log"]
|
|
# This feature enables the `tracing` logs in the calls to target the `log`
|
|
# ecosystem of backends (e.g. `env_logger`. Disable this if you want to use
|
|
# `tracing-subscriber`.
|
|
trace_log = [ "wiggle/tracing_log", "tracing/log" ]
|
|
# Need to make the wiggle_metadata feature available to consumers of this
|
|
# crate if they want the snapshots to have metadata available.
|
|
wiggle_metadata = ["wiggle/wiggle_metadata"]
|