Update to cap-std 0.17.0. (#3198)

This completes the posish->rsix rename, and contains a number of other
minor cleanups, including avoiding the `cstr` dependency.
This commit is contained in:
Dan Gohman
2021-08-17 16:08:03 -07:00
committed by GitHub
parent e8aa7bb53b
commit fde767fedc
9 changed files with 79 additions and 91 deletions

View File

@@ -15,18 +15,18 @@ include = ["src/**/*", "README.md", "LICENSE" ]
wasi-common = { path = "../", version = "0.29.0" }
async-trait = "0.1"
anyhow = "1.0"
cap-std = "0.16.0"
cap-fs-ext = "0.16.0"
cap-time-ext = "0.16.0"
cap-rand = "0.16.0"
fs-set-times = "0.6.0"
system-interface = { version = "0.8.0", features = ["cap_std_impls"] }
cap-std = "0.17.0"
cap-fs-ext = "0.17.0"
cap-time-ext = "0.17.0"
cap-rand = "0.17.0"
fs-set-times = "0.7.0"
system-interface = { version = "0.11.0", features = ["cap_std_impls"] }
tracing = "0.1.19"
bitflags = "1.2"
io-lifetimes = "0.2.0"
io-lifetimes = { version = "0.2.3", default-features = false }
[target.'cfg(unix)'.dependencies]
posish = "0.16.0"
rsix = "0.18.0"
[target.'cfg(windows)'.dependencies]
winapi = "0.3"

View File

@@ -1,6 +1,6 @@
use cap_std::time::Duration;
use io_lifetimes::{AsFd, BorrowedFd};
use posish::io::{PollFd, PollFdVec, PollFlags};
use rsix::io::{PollFd, PollFdVec, PollFlags};
use std::convert::TryInto;
use wasi_common::{
file::WasiFile,
@@ -51,7 +51,7 @@ pub async fn poll_oneoff<'a>(poll: &mut Poll<'a>) -> Result<(), Error> {
);
match pollfds.poll(poll_timeout) {
Ok(ready) => break ready,
Err(posish::io::Error::INTR) => continue,
Err(rsix::io::Error::INTR) => continue,
Err(err) => return Err(err.into()),
}
};