Update several dependencies. (#6171)
This updates to rustix 0.37.13, which contains some features we can use to implement more features in wasi-common for the wasi-sockets API. This also pulls in several other updates to avoid having multiple versions of rustix. This does introduce multiple versions of windows-sys, as the errno and tokio crates are currently using 0.45 while rustix and other dependencies have updated to 0.48; PRs updating these are already in flight so this will hopefully be resolved soon. It also includes cap-std 1.0.14, which disables the use of `openat2` and `statx` on Android, fixing a bug where some Android devices crash the process when those syscalls are executed.
This commit is contained in:
@@ -137,7 +137,7 @@ impl Mmap {
|
||||
0,
|
||||
0,
|
||||
len,
|
||||
);
|
||||
) as *mut std::ffi::c_void;
|
||||
let err = io::Error::last_os_error();
|
||||
CloseHandle(mapping);
|
||||
if ptr.is_null() {
|
||||
@@ -492,7 +492,7 @@ impl Drop for Mmap {
|
||||
let r = unsafe { VirtualFree(self.ptr as *mut c_void, 0, MEM_RELEASE) };
|
||||
assert_ne!(r, 0);
|
||||
} else {
|
||||
let r = unsafe { UnmapViewOfFile(self.ptr as *mut c_void) };
|
||||
let r = unsafe { UnmapViewOfFile(self.ptr as MEMORYMAPPEDVIEW_HANDLE) };
|
||||
assert_ne!(r, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,8 +33,7 @@ unsafe fn test_unlink_file_trailing_slashes(dir_fd: wasi::Fd) {
|
||||
assert_errno!(
|
||||
wasi::path_unlink_file(dir_fd, "file/")
|
||||
.expect_err("unlink_file with a trailing slash should fail"),
|
||||
unix => wasi::ERRNO_NOTDIR,
|
||||
windows => wasi::ERRNO_NOENT
|
||||
wasi::ERRNO_NOTDIR
|
||||
);
|
||||
|
||||
// Test that unlinking it with no trailing flash succeeds.
|
||||
|
||||
@@ -19,7 +19,7 @@ cap-std = { workspace = true }
|
||||
cap-fs-ext = "1.0.0"
|
||||
cap-time-ext = "1.0.0"
|
||||
cap-rand = { workspace = true }
|
||||
fs-set-times = "0.18.0"
|
||||
fs-set-times = "0.19.0"
|
||||
system-interface = { version = "0.25.0", features = ["cap_std_impls"] }
|
||||
tracing = { workspace = true }
|
||||
io-lifetimes = { workspace = true }
|
||||
|
||||
Reference in New Issue
Block a user