* Implement the remaining socket-related WASI functions. The original WASI specification included `sock_read`, `sock_write`, and `shutdown`. Now that we have some sockets support, implement these additional functions, to make it easier for people porting existing code to WASI. It's expected that this will all be subsumed by the wasi-sockets proposal, but for now, this is a relatively small change which should hopefully unblock people trying to use the current `accept` support. * Update to system-interface 0.22, which has fixes for Windows.
44 lines
1.1 KiB
TOML
44 lines
1.1 KiB
TOML
[package]
|
|
name = "wasi-cap-std-sync"
|
|
version = "0.41.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 = "2021"
|
|
include = ["src/**/*", "README.md", "LICENSE" ]
|
|
|
|
[dependencies]
|
|
wasi-common = { path = "../", version = "=0.41.0" }
|
|
async-trait = "0.1"
|
|
anyhow = "1.0"
|
|
cap-std = "0.25.0"
|
|
cap-fs-ext = "0.25.0"
|
|
cap-time-ext = "0.25.0"
|
|
cap-rand = "0.25.0"
|
|
fs-set-times = "0.17.0"
|
|
system-interface = { version = "0.22.0", features = ["cap_std_impls"] }
|
|
tracing = "0.1.19"
|
|
io-lifetimes = { version = "0.7.0", default-features = false }
|
|
is-terminal = "0.3.0"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
rustix = { version = "0.35.6", features = ["fs"] }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
once_cell = "1.12.0"
|
|
io-extras = "0.15.0"
|
|
rustix = { version = "0.35.6", features = ["net"] }
|
|
|
|
[target.'cfg(windows)'.dependencies.windows-sys]
|
|
version = "0.36.0"
|
|
features = [
|
|
"Win32_Foundation",
|
|
]
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.1.0"
|