Update to cap-std 0.22.0. (#3611)
* Update to cap-std 0.22.0. The main change relevant to Wasmtime here is that this includes the rustix fix for compilation errors on Rust nightly with the `asm!` macro. * Add itoa to deny.toml. * Update the doc and fuzz builds to the latest Rust nightly. * Update to libc 0.2.112 to pick up the `POLLRDHUP` fix. * Update to cargo-fuzz 0.11, for compatibility with Rust nightly. This appears to be the fix for rust-fuzz/cargo-fuzz#277.
This commit is contained in:
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@@ -62,7 +62,7 @@ jobs:
|
|||||||
submodules: true
|
submodules: true
|
||||||
- uses: ./.github/actions/install-rust
|
- uses: ./.github/actions/install-rust
|
||||||
with:
|
with:
|
||||||
toolchain: nightly-2021-07-18
|
toolchain: nightly-2021-12-15
|
||||||
|
|
||||||
# Build C API documentation
|
# Build C API documentation
|
||||||
- run: sudo apt-get update -y && sudo apt-get install -y libclang1-9 libclang-cpp9
|
- run: sudo apt-get update -y && sudo apt-get install -y libclang1-9 libclang-cpp9
|
||||||
@@ -180,8 +180,8 @@ jobs:
|
|||||||
# flags to rustc.
|
# flags to rustc.
|
||||||
- uses: ./.github/actions/install-rust
|
- uses: ./.github/actions/install-rust
|
||||||
with:
|
with:
|
||||||
toolchain: nightly-2021-07-18
|
toolchain: nightly-2021-12-15
|
||||||
- run: cargo install cargo-fuzz --vers "^0.8"
|
- run: cargo install cargo-fuzz --vers "^0.11"
|
||||||
# Install OCaml packages necessary for 'differential_spec' fuzz target.
|
# Install OCaml packages necessary for 'differential_spec' fuzz target.
|
||||||
- run: sudo apt install -y ocaml-nox ocamlbuild
|
- run: sudo apt install -y ocaml-nox ocamlbuild
|
||||||
- run: cargo fetch
|
- run: cargo fetch
|
||||||
|
|||||||
70
Cargo.lock
generated
70
Cargo.lock
generated
@@ -269,22 +269,21 @@ checksum = "b700ce4376041dcd0a327fd0097c41095743c4c8af8887265942faf1100bd040"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cap-fs-ext"
|
name = "cap-fs-ext"
|
||||||
version = "0.21.1"
|
version = "0.22.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "4f8499797f7e264c83334d9fc98b2c9889ebe5839514a14d81769ca09d71fd1d"
|
checksum = "28c920cce6be66349c19b15f149741ac63a99c62c001eac873011cdea38801e7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cap-primitives",
|
"cap-primitives",
|
||||||
"cap-std",
|
"cap-std",
|
||||||
"io-lifetimes",
|
"io-lifetimes",
|
||||||
"rustc_version",
|
|
||||||
"winapi",
|
"winapi",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cap-primitives"
|
name = "cap-primitives"
|
||||||
version = "0.21.1"
|
version = "0.22.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c5998b8b3a49736500aec3c123fa3f6f605a125b41a6df725e6b7c924a612ab4"
|
checksum = "a2737eb174c9482c865789a428bfbddfdf284317d466ebbc637eee2e1242bfaa"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ambient-authority",
|
"ambient-authority",
|
||||||
"errno",
|
"errno",
|
||||||
@@ -293,7 +292,6 @@ dependencies = [
|
|||||||
"io-lifetimes",
|
"io-lifetimes",
|
||||||
"ipnet",
|
"ipnet",
|
||||||
"maybe-owned",
|
"maybe-owned",
|
||||||
"rustc_version",
|
|
||||||
"rustix",
|
"rustix",
|
||||||
"winapi",
|
"winapi",
|
||||||
"winapi-util",
|
"winapi-util",
|
||||||
@@ -302,9 +300,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cap-rand"
|
name = "cap-rand"
|
||||||
version = "0.21.1"
|
version = "0.22.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "fafda903eb4a85903b106439cf62524275f3ae0609bb9e1ae9da7e7c26d4150c"
|
checksum = "d14abeb7657b6740639c7e33534633412643ddc96aa24143e9fe531ab56a23bb"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ambient-authority",
|
"ambient-authority",
|
||||||
"rand 0.8.3",
|
"rand 0.8.3",
|
||||||
@@ -312,23 +310,22 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cap-std"
|
name = "cap-std"
|
||||||
version = "0.21.1"
|
version = "0.22.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "811de89a7ede4ba32f2b75fe5c668a534da24942d81c081248a9d2843ebd517d"
|
checksum = "7a9ba199282865f3e3c3e7afc6907a3a27896435e24209e035c8a24d4fbcf43a"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cap-primitives",
|
"cap-primitives",
|
||||||
"io-extras",
|
"io-extras",
|
||||||
"io-lifetimes",
|
"io-lifetimes",
|
||||||
"ipnet",
|
"ipnet",
|
||||||
"rustc_version",
|
|
||||||
"rustix",
|
"rustix",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cap-tempfile"
|
name = "cap-tempfile"
|
||||||
version = "0.21.1"
|
version = "0.22.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "a4fa925a69a454293146bc04dfcbeba993093b1816531f9408e229130d7fc465"
|
checksum = "2c472ee35e2073a74a3d882c21745e7db2d573825e2e0a754dbffaeef97f4458"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cap-std",
|
"cap-std",
|
||||||
"rand 0.8.3",
|
"rand 0.8.3",
|
||||||
@@ -337,9 +334,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cap-time-ext"
|
name = "cap-time-ext"
|
||||||
version = "0.21.1"
|
version = "0.22.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "85f263d62447efe8829efdf947bbb4824ba2a3e2852b3be1d62f76fc05c326b0"
|
checksum = "ecbb6ba1f840b5b22fedaa6956ddf2e1e77604e986e23f7238c8ba509ce0bb9f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cap-primitives",
|
"cap-primitives",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
@@ -882,7 +879,7 @@ checksum = "22813a6dc45b335f9bade10bf7271dc477e81113e89eb251a0bc2a8a81c536e1"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"bstr",
|
"bstr",
|
||||||
"csv-core",
|
"csv-core",
|
||||||
"itoa",
|
"itoa 0.4.7",
|
||||||
"ryu",
|
"ryu",
|
||||||
"serde",
|
"serde",
|
||||||
]
|
]
|
||||||
@@ -1189,9 +1186,9 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "fs-set-times"
|
name = "fs-set-times"
|
||||||
version = "0.13.1"
|
version = "0.14.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "aa838950e8e36a567ce96a945c303e88d9916ff97df27c315a0d263a72bd816f"
|
checksum = "34ebf75299c070b6b4da3c9da0be01fee7388fb919fd4e6bad5b4f94923d08f1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"io-lifetimes",
|
"io-lifetimes",
|
||||||
"rustix",
|
"rustix",
|
||||||
@@ -1398,22 +1395,20 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "io-extras"
|
name = "io-extras"
|
||||||
version = "0.11.2"
|
version = "0.12.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "2a1d9a66d8b0312e3601a04a2dcf8f0ddd873319560ddeabe2110fa1e5af781a"
|
checksum = "9c9132d2d6504f4e348b8e16787f01613b4d0e587458641a40e727304416ac8d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"io-lifetimes",
|
"io-lifetimes",
|
||||||
"rustc_version",
|
|
||||||
"winapi",
|
"winapi",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "io-lifetimes"
|
name = "io-lifetimes"
|
||||||
version = "0.3.3"
|
version = "0.4.4"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "278e90d6f8a6c76a8334b336e306efa3c5f2b604048cbfd486d6f49878e3af14"
|
checksum = "f6ef6787e7f0faedc040f95716bdd0e62bcfcf4ba93da053b62dea2691c13864"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"rustc_version",
|
|
||||||
"winapi",
|
"winapi",
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -1464,6 +1459,12 @@ version = "0.4.7"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "dd25036021b0de88a0aff6b850051563c6516d0bf53f8638938edbb9de732736"
|
checksum = "dd25036021b0de88a0aff6b850051563c6516d0bf53f8638938edbb9de732736"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "itoa"
|
||||||
|
version = "1.0.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ittapi-rs"
|
name = "ittapi-rs"
|
||||||
version = "0.1.5"
|
version = "0.1.5"
|
||||||
@@ -1526,9 +1527,9 @@ checksum = "3576a87f2ba00f6f106fdfcd16db1d698d648a26ad8e0573cad8537c3c362d2a"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "libc"
|
name = "libc"
|
||||||
version = "0.2.103"
|
version = "0.2.112"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "dd8f7255a17a627354f321ef0055d63b898c6fb27eff628af4d1b66b7331edf6"
|
checksum = "1b03d17f364a3a042d5e5d46b053bbbf82c92c9430c592dd4c064dc6ee997125"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "libfuzzer-sys"
|
name = "libfuzzer-sys"
|
||||||
@@ -2456,18 +2457,17 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustix"
|
name = "rustix"
|
||||||
version = "0.26.2"
|
version = "0.31.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "18c44018277ec7195538f5631b90def7ad975bb46370cb0f4eff4012de9333f8"
|
checksum = "c9f93a06380ac0b4210538cbb392381faca6f7eba0bedd6c61f2a52514896560"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"errno",
|
"errno",
|
||||||
"io-lifetimes",
|
"io-lifetimes",
|
||||||
"itoa",
|
"itoa 1.0.1",
|
||||||
"libc",
|
"libc",
|
||||||
"linux-raw-sys",
|
"linux-raw-sys",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
"rustc_version",
|
|
||||||
"winapi",
|
"winapi",
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -2546,7 +2546,7 @@ version = "1.0.64"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "799e97dc9fdae36a5c8b8f2cae9ce2ee9fdce2058c57a93e6099d919fd982f79"
|
checksum = "799e97dc9fdae36a5c8b8f2cae9ce2ee9fdce2058c57a93e6099d919fd982f79"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"itoa",
|
"itoa 0.4.7",
|
||||||
"ryu",
|
"ryu",
|
||||||
"serde",
|
"serde",
|
||||||
]
|
]
|
||||||
@@ -2747,9 +2747,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "system-interface"
|
name = "system-interface"
|
||||||
version = "0.16.0"
|
version = "0.17.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "b1b5163055c386394170493ec1827cf7975035dc0bb23dcb7070bd1b1f672baa"
|
checksum = "bfc4f831d868c8fe30ef417d6d6cba0cd8c95688a179c2bb0ce339aee44ffdab"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"atty",
|
"atty",
|
||||||
"bitflags",
|
"bitflags",
|
||||||
@@ -3787,9 +3787,9 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "winx"
|
name = "winx"
|
||||||
version = "0.29.1"
|
version = "0.30.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "4ecd175b4077107a91bb6bbb34aa9a691d8b45314791776f78b63a1cb8a08928"
|
checksum = "c54de2ce52a3e5839e129c7859e2b1f581769bbef57c0a2a09a12a5a3a5b3c2a"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"io-lifetimes",
|
"io-lifetimes",
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ wasmparser = "0.81.0"
|
|||||||
lazy_static = "1.4.0"
|
lazy_static = "1.4.0"
|
||||||
|
|
||||||
[target.'cfg(unix)'.dependencies]
|
[target.'cfg(unix)'.dependencies]
|
||||||
rustix = "0.26.2"
|
rustix = "0.31.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
env_logger = "0.8.1"
|
env_logger = "0.8.1"
|
||||||
|
|||||||
@@ -22,7 +22,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.21.1"
|
cap-std = "0.22.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
wat = "1.0"
|
wat = "1.0"
|
||||||
|
|||||||
@@ -272,20 +272,20 @@ pub extern "C" fn wasm_bench_create(
|
|||||||
|
|
||||||
let stdout = std::fs::File::create(&stdout_path)
|
let stdout = std::fs::File::create(&stdout_path)
|
||||||
.with_context(|| format!("failed to create {}", stdout_path.display()))?;
|
.with_context(|| format!("failed to create {}", stdout_path.display()))?;
|
||||||
let stdout = cap_std::fs::File::from_std(stdout, cap_std::ambient_authority());
|
let stdout = cap_std::fs::File::from_std(stdout);
|
||||||
let stdout = wasi_cap_std_sync::file::File::from_cap_std(stdout);
|
let stdout = wasi_cap_std_sync::file::File::from_cap_std(stdout);
|
||||||
cx = cx.stdout(Box::new(stdout));
|
cx = cx.stdout(Box::new(stdout));
|
||||||
|
|
||||||
let stderr = std::fs::File::create(&stderr_path)
|
let stderr = std::fs::File::create(&stderr_path)
|
||||||
.with_context(|| format!("failed to create {}", stderr_path.display()))?;
|
.with_context(|| format!("failed to create {}", stderr_path.display()))?;
|
||||||
let stderr = cap_std::fs::File::from_std(stderr, cap_std::ambient_authority());
|
let stderr = cap_std::fs::File::from_std(stderr);
|
||||||
let stderr = wasi_cap_std_sync::file::File::from_cap_std(stderr);
|
let stderr = wasi_cap_std_sync::file::File::from_cap_std(stderr);
|
||||||
cx = cx.stderr(Box::new(stderr));
|
cx = cx.stderr(Box::new(stderr));
|
||||||
|
|
||||||
if let Some(stdin_path) = &stdin_path {
|
if let Some(stdin_path) = &stdin_path {
|
||||||
let stdin = std::fs::File::open(stdin_path)
|
let stdin = std::fs::File::open(stdin_path)
|
||||||
.with_context(|| format!("failed to open {}", stdin_path.display()))?;
|
.with_context(|| format!("failed to open {}", stdin_path.display()))?;
|
||||||
let stdin = cap_std::fs::File::from_std(stdin, cap_std::ambient_authority());
|
let stdin = cap_std::fs::File::from_std(stdin);
|
||||||
let stdin = wasi_cap_std_sync::file::File::from_cap_std(stdin);
|
let stdin = wasi_cap_std_sync::file::File::from_cap_std(stdin);
|
||||||
cx = cx.stdin(Box::new(stdin));
|
cx = cx.stdin(Box::new(stdin));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ wat = { version = "1.0.36", 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.21.1", optional = true }
|
cap-std = { version = "0.22.0", optional = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ['jitdump', 'wat', 'wasi', 'cache']
|
default = ['jitdump', 'wat', 'wasi', 'cache']
|
||||||
|
|||||||
@@ -70,21 +70,21 @@ impl wasi_config_t {
|
|||||||
if self.inherit_stdin {
|
if self.inherit_stdin {
|
||||||
builder = builder.inherit_stdin();
|
builder = builder.inherit_stdin();
|
||||||
} else if let Some(file) = self.stdin {
|
} else if let Some(file) = self.stdin {
|
||||||
let file = cap_std::fs::File::from_std(file, ambient_authority());
|
let file = cap_std::fs::File::from_std(file);
|
||||||
let file = wasi_cap_std_sync::file::File::from_cap_std(file);
|
let file = wasi_cap_std_sync::file::File::from_cap_std(file);
|
||||||
builder = builder.stdin(Box::new(file));
|
builder = builder.stdin(Box::new(file));
|
||||||
}
|
}
|
||||||
if self.inherit_stdout {
|
if self.inherit_stdout {
|
||||||
builder = builder.inherit_stdout();
|
builder = builder.inherit_stdout();
|
||||||
} else if let Some(file) = self.stdout {
|
} else if let Some(file) = self.stdout {
|
||||||
let file = cap_std::fs::File::from_std(file, ambient_authority());
|
let file = cap_std::fs::File::from_std(file);
|
||||||
let file = wasi_cap_std_sync::file::File::from_cap_std(file);
|
let file = wasi_cap_std_sync::file::File::from_cap_std(file);
|
||||||
builder = builder.stdout(Box::new(file));
|
builder = builder.stdout(Box::new(file));
|
||||||
}
|
}
|
||||||
if self.inherit_stderr {
|
if self.inherit_stderr {
|
||||||
builder = builder.inherit_stderr();
|
builder = builder.inherit_stderr();
|
||||||
} else if let Some(file) = self.stderr {
|
} else if let Some(file) = self.stderr {
|
||||||
let file = cap_std::fs::File::from_std(file, ambient_authority());
|
let file = cap_std::fs::File::from_std(file);
|
||||||
let file = wasi_cap_std_sync::file::File::from_cap_std(file);
|
let file = wasi_cap_std_sync::file::File::from_cap_std(file);
|
||||||
builder = builder.stderr(Box::new(file));
|
builder = builder.stderr(Box::new(file));
|
||||||
}
|
}
|
||||||
|
|||||||
2
crates/cache/Cargo.toml
vendored
2
crates/cache/Cargo.toml
vendored
@@ -24,7 +24,7 @@ zstd = { version = "0.9", default-features = false }
|
|||||||
winapi = "0.3.7"
|
winapi = "0.3.7"
|
||||||
|
|
||||||
[target.'cfg(not(target_os = "windows"))'.dependencies]
|
[target.'cfg(not(target_os = "windows"))'.dependencies]
|
||||||
rustix = "0.26.2"
|
rustix = "0.31.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
filetime = "0.2.7"
|
filetime = "0.2.7"
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ edition = "2018"
|
|||||||
links = "wasmtime-fiber-shims"
|
links = "wasmtime-fiber-shims"
|
||||||
|
|
||||||
[target.'cfg(unix)'.dependencies]
|
[target.'cfg(unix)'.dependencies]
|
||||||
rustix = "0.26.2"
|
rustix = "0.31.0"
|
||||||
|
|
||||||
[target.'cfg(windows)'.dependencies.winapi]
|
[target.'cfg(windows)'.dependencies.winapi]
|
||||||
version = "0.3.9"
|
version = "0.3.9"
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ bincode = "1.2.1"
|
|||||||
winapi = { version = "0.3.8", features = ["winnt", "impl-default"] }
|
winapi = { version = "0.3.8", features = ["winnt", "impl-default"] }
|
||||||
|
|
||||||
[target.'cfg(target_os = "linux")'.dependencies]
|
[target.'cfg(target_os = "linux")'.dependencies]
|
||||||
rustix = { version = "0.26.2", optional = true }
|
rustix = { version = "0.31.0", optional = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
jitdump = ['rustix']
|
jitdump = ['rustix']
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ edition = "2018"
|
|||||||
wasmtime-environ = { path = "../environ", version = "=0.32.0" }
|
wasmtime-environ = { path = "../environ", version = "=0.32.0" }
|
||||||
wasmtime-fiber = { path = "../fiber", version = "=0.32.0", optional = true }
|
wasmtime-fiber = { path = "../fiber", version = "=0.32.0", optional = true }
|
||||||
region = "2.1.0"
|
region = "2.1.0"
|
||||||
libc = { version = "0.2.82", default-features = false }
|
libc = { version = "0.2.112", default-features = false }
|
||||||
log = "0.4.8"
|
log = "0.4.8"
|
||||||
memoffset = "0.6.0"
|
memoffset = "0.6.0"
|
||||||
indexmap = "1.0.2"
|
indexmap = "1.0.2"
|
||||||
@@ -30,7 +30,7 @@ anyhow = "1.0.38"
|
|||||||
mach = "0.3.2"
|
mach = "0.3.2"
|
||||||
|
|
||||||
[target.'cfg(unix)'.dependencies]
|
[target.'cfg(unix)'.dependencies]
|
||||||
rustix = "0.26.2"
|
rustix = "0.31.0"
|
||||||
|
|
||||||
[target.'cfg(target_os = "windows")'.dependencies]
|
[target.'cfg(target_os = "windows")'.dependencies]
|
||||||
winapi = { version = "0.3.7", features = ["winbase", "memoryapi", "errhandlingapi", "handleapi"] }
|
winapi = { version = "0.3.7", features = ["winbase", "memoryapi", "errhandlingapi", "handleapi"] }
|
||||||
|
|||||||
@@ -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.37"
|
wat = "1.0.37"
|
||||||
cap-std = "0.21.1"
|
cap-std = "0.22.0"
|
||||||
tokio = { version = "1.8.0", features = ["rt-multi-thread"] }
|
tokio = { version = "1.8.0", features = ["rt-multi-thread"] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
|||||||
@@ -22,12 +22,12 @@ anyhow = "1.0"
|
|||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
wiggle = { path = "../wiggle", default-features = false, version = "=0.32.0" }
|
wiggle = { path = "../wiggle", default-features = false, version = "=0.32.0" }
|
||||||
tracing = "0.1.19"
|
tracing = "0.1.19"
|
||||||
cap-std = "0.21.1"
|
cap-std = "0.22.0"
|
||||||
cap-rand = "0.21.1"
|
cap-rand = "0.22.0"
|
||||||
bitflags = "1.2"
|
bitflags = "1.2"
|
||||||
|
|
||||||
[target.'cfg(unix)'.dependencies]
|
[target.'cfg(unix)'.dependencies]
|
||||||
rustix = "0.26.2"
|
rustix = "0.31.0"
|
||||||
|
|
||||||
[target.'cfg(windows)'.dependencies]
|
[target.'cfg(windows)'.dependencies]
|
||||||
winapi = "0.3"
|
winapi = "0.3"
|
||||||
|
|||||||
@@ -15,17 +15,17 @@ include = ["src/**/*", "README.md", "LICENSE" ]
|
|||||||
wasi-common = { path = "../", version = "=0.32.0" }
|
wasi-common = { path = "../", version = "=0.32.0" }
|
||||||
async-trait = "0.1"
|
async-trait = "0.1"
|
||||||
anyhow = "1.0"
|
anyhow = "1.0"
|
||||||
cap-std = "0.21.1"
|
cap-std = "0.22.0"
|
||||||
cap-fs-ext = "0.21.1"
|
cap-fs-ext = "0.22.0"
|
||||||
cap-time-ext = "0.21.1"
|
cap-time-ext = "0.22.0"
|
||||||
cap-rand = "0.21.1"
|
cap-rand = "0.22.0"
|
||||||
fs-set-times = "0.13.1"
|
fs-set-times = "0.14.1"
|
||||||
system-interface = { version = "0.16.0", features = ["cap_std_impls"] }
|
system-interface = { version = "0.17.0", features = ["cap_std_impls"] }
|
||||||
tracing = "0.1.19"
|
tracing = "0.1.19"
|
||||||
io-lifetimes = { version = "0.3.3", default-features = false }
|
io-lifetimes = { version = "0.4.4", default-features = false }
|
||||||
|
|
||||||
[target.'cfg(unix)'.dependencies]
|
[target.'cfg(unix)'.dependencies]
|
||||||
rustix = "0.26.2"
|
rustix = "0.31.0"
|
||||||
|
|
||||||
[target.'cfg(windows)'.dependencies]
|
[target.'cfg(windows)'.dependencies]
|
||||||
winapi = "0.3"
|
winapi = "0.3"
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ impl TryFrom<std::io::Error> for types::Errno {
|
|||||||
Some(Error::IO) => Some(types::Errno::Io),
|
Some(Error::IO) => Some(types::Errno::Io),
|
||||||
Some(Error::BADF) => Some(types::Errno::Badf),
|
Some(Error::BADF) => Some(types::Errno::Badf),
|
||||||
Some(Error::BUSY) => Some(types::Errno::Busy),
|
Some(Error::BUSY) => Some(types::Errno::Busy),
|
||||||
Some(Error::ACCES) => Some(types::Errno::Acces),
|
Some(Error::ACCESS) => Some(types::Errno::Acces),
|
||||||
Some(Error::FAULT) => Some(types::Errno::Fault),
|
Some(Error::FAULT) => Some(types::Errno::Fault),
|
||||||
Some(Error::NOTDIR) => Some(types::Errno::Notdir),
|
Some(Error::NOTDIR) => Some(types::Errno::Notdir),
|
||||||
Some(Error::ISDIR) => Some(types::Errno::Isdir),
|
Some(Error::ISDIR) => Some(types::Errno::Isdir),
|
||||||
|
|||||||
@@ -15,12 +15,12 @@ wasi-common = { path = "../", version = "=0.32.0" }
|
|||||||
wasi-cap-std-sync = { path = "../cap-std-sync", version = "=0.32.0" }
|
wasi-cap-std-sync = { path = "../cap-std-sync", version = "=0.32.0" }
|
||||||
wiggle = { path = "../../wiggle", version = "=0.32.0" }
|
wiggle = { path = "../../wiggle", version = "=0.32.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.21.1"
|
cap-std = "0.22.0"
|
||||||
anyhow = "1"
|
anyhow = "1"
|
||||||
io-lifetimes = { version = "0.3.0", default-features = false }
|
io-lifetimes = { version = "0.4.4", default-features = false }
|
||||||
|
|
||||||
[target.'cfg(unix)'.dependencies]
|
[target.'cfg(unix)'.dependencies]
|
||||||
rustix = "0.26.2"
|
rustix = "0.31.0"
|
||||||
|
|
||||||
[target.'cfg(windows)'.dependencies]
|
[target.'cfg(windows)'.dependencies]
|
||||||
winapi = "0.3"
|
winapi = "0.3"
|
||||||
@@ -30,4 +30,4 @@ lazy_static = "1.4"
|
|||||||
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.21.1"
|
cap-tempfile = "0.22.0"
|
||||||
|
|||||||
@@ -35,4 +35,5 @@ skip = [
|
|||||||
{ name = "wast" }, # old one pulled in by witx
|
{ name = "wast" }, # old one pulled in by witx
|
||||||
{ name = "quick-error" }, # transitive dependencies
|
{ name = "quick-error" }, # transitive dependencies
|
||||||
{ name = "textwrap" }, # `miette` and `clap` depend on different versions
|
{ name = "textwrap" }, # `miette` and `clap` depend on different versions
|
||||||
|
{ name = "itoa" }, # `rustix` and `criterion` depend on different versions
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user