Update to cap-std 0.26. (#4940)

* Update to cap-std 0.26.

This is primarily to pull in bytecodealliance/cap-std#271, the fix for #4936,
compilation on Rust nightly on Windows.

It also updates to rustix 0.35.10, to pull in bytecodealliance/rustix#403,
the fix for bytecodealliance/rustix#402, compilation on newer versions of
the libc crate, which changed a public function from `unsafe` to safe.

Fixes #4936.

* Update the system-interface audit for 0.23.

* Update the libc supply-chain config version.
This commit is contained in:
Dan Gohman
2022-09-21 12:56:38 -07:00
committed by GitHub
parent b2d13ebd46
commit 6f50ddaaf2
15 changed files with 49 additions and 49 deletions

36
Cargo.lock generated
View File

@@ -234,9 +234,9 @@ checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8"
[[package]] [[package]]
name = "cap-fs-ext" name = "cap-fs-ext"
version = "0.25.3" version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "438ca7f5bb15c799ea146429e4f8b7bfd25ff1eb05319024549a7728de45800c" checksum = "d6540a9d9002b6ec6fe5f1bbbfcded600a16018570c64fedbc5ccad0632b8edc"
dependencies = [ dependencies = [
"cap-primitives", "cap-primitives",
"cap-std", "cap-std",
@@ -246,9 +246,9 @@ dependencies = [
[[package]] [[package]]
name = "cap-primitives" name = "cap-primitives"
version = "0.25.3" version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ba063daa90ed40882bb288ac4ecaa942d655d15cf74393d41d2267b5d7daf120" checksum = "591dbd5ace8712534c781367a16b46b620564153f88dfed85e7f609638f52e01"
dependencies = [ dependencies = [
"ambient-authority", "ambient-authority",
"fs-set-times", "fs-set-times",
@@ -264,9 +264,9 @@ dependencies = [
[[package]] [[package]]
name = "cap-rand" name = "cap-rand"
version = "0.25.3" version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c720808e249f0ae846ec647fe48cef3cea67e4e5026cf869c041c278b7dcae45" checksum = "d2832496b1552ea04fb9267a70f831697c67d4bf9656ada6b9f93d4640e78485"
dependencies = [ dependencies = [
"ambient-authority", "ambient-authority",
"rand 0.8.5", "rand 0.8.5",
@@ -274,9 +274,9 @@ dependencies = [
[[package]] [[package]]
name = "cap-std" name = "cap-std"
version = "0.25.3" version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0e3a603c9f3bd2181ed128ab3cd32fbde7cff76afc64a3576662701c4aee7e2b" checksum = "2a6652184ef93583621d582105885a82cc7c6f522662390a15658e6d098c833c"
dependencies = [ dependencies = [
"cap-primitives", "cap-primitives",
"io-extras", "io-extras",
@@ -287,9 +287,9 @@ dependencies = [
[[package]] [[package]]
name = "cap-tempfile" name = "cap-tempfile"
version = "0.25.3" version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "86d435f791da84cb800b98a1de48d145a08e70d8172d335e87446c79b17bfbf3" checksum = "cc76d2cf04cd69960421f484ac5a82802546fada52b26253e1e51a44fc318c34"
dependencies = [ dependencies = [
"cap-std", "cap-std",
"rand 0.8.5", "rand 0.8.5",
@@ -299,9 +299,9 @@ dependencies = [
[[package]] [[package]]
name = "cap-time-ext" name = "cap-time-ext"
version = "0.25.3" version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da76e64f3e46f8c8479e392a7fe3faa2e76b8c1cea4618bae445276fdec12082" checksum = "8cd90913f359a8baff03c1c8b8e5655d2a465da561344da85f052d5fa3091d8c"
dependencies = [ dependencies = [
"cap-primitives", "cap-primitives",
"once_cell", "once_cell",
@@ -1583,9 +1583,9 @@ checksum = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67"
[[package]] [[package]]
name = "libc" name = "libc"
version = "0.2.126" version = "0.2.133"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" checksum = "c0f80d65747a3e43d1596c7c5492d95d5edddaabd45a7fcdb02b95f644164966"
[[package]] [[package]]
name = "libfuzzer-sys" name = "libfuzzer-sys"
@@ -2481,9 +2481,9 @@ dependencies = [
[[package]] [[package]]
name = "rustix" name = "rustix"
version = "0.35.6" version = "0.35.10"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef258c11e17f5c01979a10543a30a4e12faef6aab217a74266e747eefa3aed88" checksum = "af895b90e5c071badc3136fc10ff0bcfc98747eadbaf43ed8f214e07ba8f8477"
dependencies = [ dependencies = [
"bitflags", "bitflags",
"errno", "errno",
@@ -2772,9 +2772,9 @@ dependencies = [
[[package]] [[package]]
name = "system-interface" name = "system-interface"
version = "0.22.0" version = "0.23.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fa85f9e64bd72b222ced152d2694fd306c0ebe43670cb9d187701874b7b89008" checksum = "92adbaf536f5aff6986e1e62ba36cee72b1718c5153eee08b9e728ddde3f6029"
dependencies = [ dependencies = [
"atty", "atty",
"bitflags", "bitflags",

View File

@@ -39,7 +39,7 @@ once_cell = "1.12"
listenfd = "1.0.0" listenfd = "1.0.0"
[target.'cfg(unix)'.dependencies] [target.'cfg(unix)'.dependencies]
rustix = { version = "0.35.6", features = ["mm", "param"] } rustix = { version = "0.35.10", features = ["mm", "param"] }
[dev-dependencies] [dev-dependencies]
# depend again on wasmtime to activate its default features for tests # depend again on wasmtime to activate its default features for tests

View File

@@ -25,7 +25,7 @@ wasmtime-wasi = { path = "../wasi" }
wasmtime-wasi-crypto = { path = "../wasi-crypto", optional = true } wasmtime-wasi-crypto = { path = "../wasi-crypto", optional = true }
wasmtime-wasi-nn = { path = "../wasi-nn", optional = true } wasmtime-wasi-nn = { path = "../wasi-nn", optional = true }
wasi-cap-std-sync = { path = "../wasi-common/cap-std-sync" } wasi-cap-std-sync = { path = "../wasi-common/cap-std-sync" }
cap-std = "0.25.3" cap-std = "0.26.0"
[dev-dependencies] [dev-dependencies]
wat = "1.0.45" wat = "1.0.45"

View File

@@ -29,7 +29,7 @@ wat = { version = "1.0.47", optional = true }
# Optional dependencies for the `wasi` feature # Optional dependencies for the `wasi` feature
wasi-cap-std-sync = { path = "../wasi-common/cap-std-sync", optional = true } wasi-cap-std-sync = { path = "../wasi-common/cap-std-sync", optional = true }
wasmtime-wasi = { path = "../wasi", optional = true } wasmtime-wasi = { path = "../wasi", optional = true }
cap-std = { version = "0.25.3", optional = true } cap-std = { version = "0.26.0", optional = true }
[features] [features]
default = ['jitdump', 'wat', 'wasi', 'cache', 'parallel-compilation', 'memory-init-cow'] default = ['jitdump', 'wat', 'wasi', 'cache', 'parallel-compilation', 'memory-init-cow']

View File

@@ -27,7 +27,7 @@ features = [
] ]
[target.'cfg(not(target_os = "windows"))'.dependencies] [target.'cfg(not(target_os = "windows"))'.dependencies]
rustix = { version = "0.35.6", features = ["process"] } rustix = { version = "0.35.10", features = ["process"] }
[dev-dependencies] [dev-dependencies]
filetime = "0.2.7" filetime = "0.2.7"

View File

@@ -17,7 +17,7 @@ links = "wasmtime-fiber-shims"
cfg-if = "1.0" cfg-if = "1.0"
[target.'cfg(unix)'.dependencies] [target.'cfg(unix)'.dependencies]
rustix = { version = "0.35.6", features = ["mm", "param"] } rustix = { version = "0.35.10", features = ["mm", "param"] }
wasmtime-asm-macros = { version = "=2.0.0", path = "../asm-macros" } wasmtime-asm-macros = { version = "=2.0.0", path = "../asm-macros" }
[target.'cfg(windows)'.dependencies.windows-sys] [target.'cfg(windows)'.dependencies.windows-sys]

View File

@@ -15,7 +15,7 @@ once_cell = {version = "1.12.0", optional = true }
object = { version = "0.29.0", default-features = false, features = ["std", "read_core"], optional = true } object = { version = "0.29.0", default-features = false, features = ["std", "read_core"], optional = true }
[target.'cfg(target_os = "linux")'.dependencies] [target.'cfg(target_os = "linux")'.dependencies]
rustix = { version = "0.35.6", features = ["mm", "param", "time"], optional = true } rustix = { version = "0.35.10", features = ["mm", "param", "time"], optional = true }
[badges] [badges]
maintenance = { status = "actively-developed" } maintenance = { status = "actively-developed" }

View File

@@ -34,7 +34,7 @@ features = [
] ]
[target.'cfg(target_os = "linux")'.dependencies] [target.'cfg(target_os = "linux")'.dependencies]
rustix = { version = "0.35.6", features = ["process"] } rustix = { version = "0.35.10", features = ["process"] }
[target.'cfg(target_arch = "x86_64")'.dependencies] [target.'cfg(target_arch = "x86_64")'.dependencies]
ittapi = { version = "0.3.0", optional = true } ittapi = { version = "0.3.0", optional = true }

View File

@@ -31,7 +31,7 @@ encoding_rs = { version = "0.8.31", optional = true }
mach = "0.3.2" mach = "0.3.2"
[target.'cfg(unix)'.dependencies] [target.'cfg(unix)'.dependencies]
rustix = { version = "0.35.6", features = ["mm"] } rustix = { version = "0.35.10", features = ["mm"] }
[target.'cfg(target_os = "windows")'.dependencies.windows-sys] [target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.36.0" version = "0.36.0"

View File

@@ -21,7 +21,7 @@ tempfile = "3.1.0"
os_pipe = "0.9" os_pipe = "0.9"
anyhow = "1.0.19" anyhow = "1.0.19"
wat = "1.0.47" wat = "1.0.47"
cap-std = "0.25.3" cap-std = "0.26.0"
tokio = { version = "1.8.0", features = ["rt-multi-thread"] } tokio = { version = "1.8.0", features = ["rt-multi-thread"] }
[features] [features]

View File

@@ -22,12 +22,12 @@ anyhow = "1.0"
thiserror = "1.0" thiserror = "1.0"
wiggle = { path = "../wiggle", default-features = false, version = "=2.0.0" } wiggle = { path = "../wiggle", default-features = false, version = "=2.0.0" }
tracing = "0.1.19" tracing = "0.1.19"
cap-std = "0.25.3" cap-std = "0.26.0"
cap-rand = "0.25.3" cap-rand = "0.26.0"
bitflags = "1.2" bitflags = "1.2"
[target.'cfg(unix)'.dependencies] [target.'cfg(unix)'.dependencies]
rustix = { version = "0.35.6", features = ["fs"] } rustix = { version = "0.35.10", features = ["fs"] }
[target.'cfg(windows)'.dependencies] [target.'cfg(windows)'.dependencies]
io-extras = "0.15.0" io-extras = "0.15.0"

View File

@@ -15,23 +15,23 @@ include = ["src/**/*", "README.md", "LICENSE" ]
wasi-common = { path = "../", version = "=2.0.0" } wasi-common = { path = "../", version = "=2.0.0" }
async-trait = "0.1" async-trait = "0.1"
anyhow = "1.0" anyhow = "1.0"
cap-std = "0.25.3" cap-std = "0.26.0"
cap-fs-ext = "0.25.3" cap-fs-ext = "0.26.0"
cap-time-ext = "0.25.3" cap-time-ext = "0.26.0"
cap-rand = "0.25.3" cap-rand = "0.26.0"
fs-set-times = "0.17.0" fs-set-times = "0.17.0"
system-interface = { version = "0.22.0", features = ["cap_std_impls"] } system-interface = { version = "0.23.0", features = ["cap_std_impls"] }
tracing = "0.1.19" tracing = "0.1.19"
io-lifetimes = { version = "0.7.0", default-features = false } io-lifetimes = { version = "0.7.0", default-features = false }
is-terminal = "0.3.0" is-terminal = "0.3.0"
[target.'cfg(unix)'.dependencies] [target.'cfg(unix)'.dependencies]
rustix = { version = "0.35.6", features = ["fs"] } rustix = { version = "0.35.10", features = ["fs"] }
[target.'cfg(windows)'.dependencies] [target.'cfg(windows)'.dependencies]
once_cell = "1.12.0" once_cell = "1.12.0"
io-extras = "0.15.0" io-extras = "0.15.0"
rustix = { version = "0.35.6", features = ["net"] } rustix = { version = "0.35.10", features = ["net"] }
[target.'cfg(windows)'.dependencies.windows-sys] [target.'cfg(windows)'.dependencies.windows-sys]
version = "0.36.0" version = "0.36.0"

View File

@@ -15,12 +15,12 @@ wasi-common = { path = "../", version = "=2.0.0" }
wasi-cap-std-sync = { path = "../cap-std-sync", version = "=2.0.0" } wasi-cap-std-sync = { path = "../cap-std-sync", version = "=2.0.0" }
wiggle = { path = "../../wiggle", version = "=2.0.0" } wiggle = { path = "../../wiggle", version = "=2.0.0" }
tokio = { version = "1.8.0", features = [ "rt", "fs", "time", "io-util", "net", "io-std", "rt-multi-thread"] } tokio = { version = "1.8.0", features = [ "rt", "fs", "time", "io-util", "net", "io-std", "rt-multi-thread"] }
cap-std = "0.25.3" cap-std = "0.26.0"
anyhow = "1" anyhow = "1"
io-lifetimes = { version = "0.7.0", default-features = false } io-lifetimes = { version = "0.7.0", default-features = false }
[target.'cfg(unix)'.dependencies] [target.'cfg(unix)'.dependencies]
rustix = { version = "0.35.6", features = ["fs"] } rustix = { version = "0.35.10", features = ["fs"] }
[target.'cfg(windows)'.dependencies] [target.'cfg(windows)'.dependencies]
io-extras = "0.15.0" io-extras = "0.15.0"
@@ -29,4 +29,4 @@ io-extras = "0.15.0"
tempfile = "3.1.0" tempfile = "3.1.0"
tokio = { version = "1.8.0", features = [ "macros" ] } tokio = { version = "1.8.0", features = [ "macros" ] }
anyhow = "1" anyhow = "1"
cap-tempfile = "0.25.3" cap-tempfile = "0.26.0"

View File

@@ -47,37 +47,37 @@ notes = "I am the author of this crate."
[[audits.cap-fs-ext]] [[audits.cap-fs-ext]]
who = "Dan Gohman <dev@sunfishcode.online>" who = "Dan Gohman <dev@sunfishcode.online>"
criteria = "safe-to-deploy" criteria = "safe-to-deploy"
version = "0.25.3" version = "0.26.0"
notes = "The Bytecode Alliance is the author of this crate" notes = "The Bytecode Alliance is the author of this crate"
[[audits.cap-primitives]] [[audits.cap-primitives]]
who = "Dan Gohman <dev@sunfishcode.online>" who = "Dan Gohman <dev@sunfishcode.online>"
criteria = "safe-to-deploy" criteria = "safe-to-deploy"
version = "0.25.3" version = "0.26.0"
notes = "The Bytecode Alliance is the author of this crate" notes = "The Bytecode Alliance is the author of this crate"
[[audits.cap-rand]] [[audits.cap-rand]]
who = "Alex Crichton <alex@alexcrichton.com>" who = "Alex Crichton <alex@alexcrichton.com>"
criteria = "safe-to-deploy" criteria = "safe-to-deploy"
version = "0.25.3" version = "0.26.0"
notes = "The Bytecode Alliance is the author of this crate" notes = "The Bytecode Alliance is the author of this crate"
[[audits.cap-std]] [[audits.cap-std]]
who = "Dan Gohman <dev@sunfishcode.online>" who = "Dan Gohman <dev@sunfishcode.online>"
criteria = "safe-to-deploy" criteria = "safe-to-deploy"
version = "0.25.3" version = "0.26.0"
notes = "The Bytecode Alliance is the author of this crate" notes = "The Bytecode Alliance is the author of this crate"
[[audits.cap-tempfile]] [[audits.cap-tempfile]]
who = "Dan Gohman <dev@sunfishcode.online>" who = "Dan Gohman <dev@sunfishcode.online>"
criteria = "safe-to-run" criteria = "safe-to-run"
version = "0.25.3" version = "0.26.0"
notes = "The Bytecode Alliance is the author of this crate" notes = "The Bytecode Alliance is the author of this crate"
[[audits.cap-time-ext]] [[audits.cap-time-ext]]
who = "Alex Crichton <alex@alexcrichton.com>" who = "Alex Crichton <alex@alexcrichton.com>"
criteria = "safe-to-deploy" criteria = "safe-to-deploy"
version = "0.25.3" version = "0.26.0"
notes = "The Bytecode Alliance is the author of this crate." notes = "The Bytecode Alliance is the author of this crate."
[[audits.cc]] [[audits.cc]]
@@ -185,7 +185,7 @@ notes = "I am the author of this crate."
[[audits.system-interface]] [[audits.system-interface]]
who = "Dan Gohman <dev@sunfishcode.online>" who = "Dan Gohman <dev@sunfishcode.online>"
criteria = "safe-to-deploy" criteria = "safe-to-deploy"
version = "0.22.0" version = "0.23.0"
notes = "The Bytecode Alliance is the author of this crate." notes = "The Bytecode Alliance is the author of this crate."
[[audits.wasm-encoder]] [[audits.wasm-encoder]]

View File

@@ -431,7 +431,7 @@ version = "1.4.0"
criteria = "safe-to-deploy" criteria = "safe-to-deploy"
[[exemptions.libc]] [[exemptions.libc]]
version = "0.2.126" version = "0.2.133"
criteria = "safe-to-deploy" criteria = "safe-to-deploy"
[[exemptions.libfuzzer-sys]] [[exemptions.libfuzzer-sys]]
@@ -787,7 +787,7 @@ version = "0.4.0"
criteria = "safe-to-run" criteria = "safe-to-run"
[[exemptions.rustix]] [[exemptions.rustix]]
version = "0.35.6" version = "0.35.10"
criteria = "safe-to-deploy" criteria = "safe-to-deploy"
[[exemptions.rusty-fork]] [[exemptions.rusty-fork]]