Skip to content

Commit

Permalink
Update to cap-std 0.24.1, fixing compilation on Right nightly. (bytec…
Browse files Browse the repository at this point in the history
…odealliance#3786)

Other than doc updates, this just contains bytecodealliance/cap-std#235,
a fix for compilation errors on Rust nightly that look like this:

```
error[E0308]: mismatched types
  --> cap-primitives/src/fs/via_parent/rename.rs:22:58
   |
22 |     let (old_dir, old_basename) = open_parent(old_start, &old_path)?;
   |                                                          ^^^^^^^^^ expected struct `Path`, found opaque type
   |
  ::: cap-primitives/src/rustix/fs/dir_utils.rs:67:48
   |
67 | pub(crate) fn strip_dir_suffix(path: &Path) -> impl Deref<Target = Path> + '_ {
   |                                                ------------------------------ the found opaque type
   |
   = note:   expected struct `Path`
           found opaque type `impl Deref<Target = Path>`
```
  • Loading branch information
sunfishcode authored and mpardesh committed Mar 17, 2022
1 parent c66affe commit 79b5454
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/bench-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ wasmtime-wasi = { path = "../wasi" }
wasmtime-wasi-crypto = { path = "../wasi-crypto", optional = true }
wasmtime-wasi-nn = { path = "../wasi-nn", optional = true }
wasi-cap-std-sync = { path = "../wasi-common/cap-std-sync" }
cap-std = "0.24.0"
cap-std = "0.24.1"

[dev-dependencies]
wat = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/c-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ wat = { version = "1.0.36", optional = true }
# Optional dependencies for the `wasi` feature
wasi-cap-std-sync = { path = "../wasi-common/cap-std-sync", optional = true }
wasmtime-wasi = { path = "../wasi", optional = true }
cap-std = { version = "0.24.0", optional = true }
cap-std = { version = "0.24.1", optional = true }

[features]
default = ['jitdump', 'wat', 'wasi', 'cache']
Expand Down
2 changes: 1 addition & 1 deletion crates/test-programs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ tempfile = "3.1.0"
os_pipe = "0.9"
anyhow = "1.0.19"
wat = "1.0.37"
cap-std = "0.24.0"
cap-std = "0.24.1"
tokio = { version = "1.8.0", features = ["rt-multi-thread"] }

[features]
Expand Down
4 changes: 2 additions & 2 deletions crates/wasi-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ anyhow = "1.0"
thiserror = "1.0"
wiggle = { path = "../wiggle", default-features = false, version = "=0.34.0" }
tracing = "0.1.19"
cap-std = "0.24.0"
cap-rand = "0.24.0"
cap-std = "0.24.1"
cap-rand = "0.24.1"
bitflags = "1.2"

[target.'cfg(unix)'.dependencies]
Expand Down
8 changes: 4 additions & 4 deletions crates/wasi-common/cap-std-sync/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ include = ["src/**/*", "README.md", "LICENSE" ]
wasi-common = { path = "../", version = "=0.34.0" }
async-trait = "0.1"
anyhow = "1.0"
cap-std = "0.24.0"
cap-fs-ext = "0.24.0"
cap-time-ext = "0.24.0"
cap-rand = "0.24.0"
cap-std = "0.24.1"
cap-fs-ext = "0.24.1"
cap-time-ext = "0.24.1"
cap-rand = "0.24.1"
fs-set-times = "0.15.0"
system-interface = { version = "0.20.0", features = ["cap_std_impls"] }
tracing = "0.1.19"
Expand Down
4 changes: 2 additions & 2 deletions crates/wasi-common/tokio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ wasi-common = { path = "../", version = "=0.34.0" }
wasi-cap-std-sync = { path = "../cap-std-sync", version = "=0.34.0" }
wiggle = { path = "../../wiggle", version = "=0.34.0" }
tokio = { version = "1.8.0", features = [ "rt", "fs", "time", "io-util", "net", "io-std", "rt-multi-thread"] }
cap-std = "0.24.0"
cap-std = "0.24.1"
anyhow = "1"
io-lifetimes = { version = "0.5.0", default-features = false }

Expand All @@ -31,4 +31,4 @@ io-extras = "0.13.0"
tempfile = "3.1.0"
tokio = { version = "1.8.0", features = [ "macros" ] }
anyhow = "1"
cap-tempfile = "0.24.0"
cap-tempfile = "0.24.1"

0 comments on commit 79b5454

Please sign in to comment.