From f4376e64c3a568e5c30bac68515be31d2a2ada0d Mon Sep 17 00:00:00 2001 From: Vincent Thiberville Date: Wed, 4 Dec 2024 01:49:11 +0100 Subject: [PATCH] bump windows-sys requirement to allow 0.59.0 (#1229) The code is compatible with version 0.52.0 and version 0.59.0. Additionally, bump errno to 0.3.10 to get this requirement on errno as well. --- Cargo.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ff7f879eb..3ae5d614f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,7 @@ once_cell = { version = "1.5.2", optional = true } # `RUSTFLAGS` or enabling the `use-libc` cargo feature. [target.'cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_endian = "little", target_arch = "s390x"), any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "s390x"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))'.dependencies] linux-raw-sys = { version = "0.4.14", default-features = false, features = ["general", "errno", "ioctl", "no_std", "elf"] } -libc_errno = { package = "errno", version = "0.3.8", default-features = false, optional = true } +libc_errno = { package = "errno", version = "0.3.10", default-features = false, optional = true } libc = { version = "0.2.161", default-features = false, optional = true } # Dependencies for platforms where only libc is supported: @@ -45,7 +45,7 @@ libc = { version = "0.2.161", default-features = false, optional = true } # On all other Unix-family platforms, and under Miri, we always use the libc # backend, so enable its dependencies unconditionally. [target.'cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_endian = "little", target_arch = "s390x"), any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "s390x"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))))))'.dependencies] -libc_errno = { package = "errno", version = "0.3.8", default-features = false } +libc_errno = { package = "errno", version = "0.3.10", default-features = false } libc = { version = "0.2.161", default-features = false } # Additional dependencies for Linux with the libc backend: @@ -57,7 +57,7 @@ linux-raw-sys = { version = "0.4.14", default-features = false, features = ["gen # For the libc backend on Windows, use the Winsock API in windows-sys. [target.'cfg(windows)'.dependencies.windows-sys] -version = "0.52.0" +version = ">=0.52, <=0.59" features = [ "Win32_Foundation", "Win32_Networking_WinSock", @@ -68,14 +68,14 @@ features = [ # For the libc backend on Windows, also use the errno crate, which has Windows # support. [target.'cfg(windows)'.dependencies.libc_errno] -version = "0.3.8" +version = "0.3.10" package = "errno" default-features = false [dev-dependencies] tempfile = "3.5.0" libc = "0.2.161" -libc_errno = { package = "errno", version = "0.3.8", default-features = false } +libc_errno = { package = "errno", version = "0.3.10", default-features = false } serial_test = "2.0.0" memoffset = "0.9.0" flate2 = "1.0"