Skip to content

Commit 4fa4ae3

Browse files
authored
Update to Linux 6.1 io_uring features. (#508)
Update to linux-raw-sys 0.2 which adds Linux 6.1 features, and add io_uring bindings for new io_uring features.
1 parent 45c4696 commit 4fa4ae3

File tree

2 files changed

+206
-64
lines changed

2 files changed

+206
-64
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ once_cell = { version = "1.5.2", optional = true }
3939
# libc backend can be selected via adding `--cfg=rustix_use_libc` to
4040
# `RUSTFLAGS` or enabling the `use-libc` cargo feature.
4141
[target.'cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))'.dependencies]
42-
linux-raw-sys = { version = "0.1.2", default-features = false, features = ["general", "errno", "ioctl", "no_std"] }
42+
linux-raw-sys = { version = "0.2.0", default-features = false, features = ["general", "errno", "ioctl", "no_std"] }
4343
libc_errno = { package = "errno", version = "0.2.8", default-features = false, optional = true }
4444
libc = { version = "0.2.133", features = ["extra_traits"], optional = true }
4545

@@ -56,7 +56,7 @@ libc = { version = "0.2.133", features = ["extra_traits"] }
5656
# Some syscalls do not have libc wrappers, such as in `io_uring`. For these,
5757
# the libc backend uses the linux-raw-sys ABI and `libc::syscall`.
5858
[target.'cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))))))'.dependencies]
59-
linux-raw-sys = { version = "0.1.2", default-features = false, features = ["general", "no_std"] }
59+
linux-raw-sys = { version = "0.2.0", default-features = false, features = ["general", "no_std"] }
6060

6161
# For the libc backend on Windows, use the Winsock2 API in windows-sys.
6262
[target.'cfg(windows)'.dependencies.windows-sys]

0 commit comments

Comments
 (0)