sysutils/vector: Fix build with rust 1.64.0

Update socket2 crate to 0.3.19

PR:		267173
This commit is contained in:
Mikael Urankar 2022-10-14 15:22:33 +02:00
parent 0cf2f1d290
commit 61c2e70139
3 changed files with 1092 additions and 1062 deletions

View file

@ -404,7 +404,7 @@ CARGO_CRATES= adler-0.2.3 \
smpl_jwt-0.5.0 \
snafu-0.6.6 \
snafu-derive-0.6.6 \
socket2-0.3.11 \
socket2-0.3.19 \
sourcefile-0.1.4 \
standback-0.2.8 \
static_assertions-1.1.0 \

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,30 @@
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> socket2-0.3.XX/src/sockaddr.rs:176:9
|
176 | mem::transmute::<SocketAddrV4, sockaddr_in>(v4);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: source type: `SocketAddrV4` (48 bits)
= note: target type: `sockaddr_in` (128 bits)
For more information about this error, try `rustc --explain E0512`.
error: could not compile `socket2` due to previous error
--- Cargo.lock.orig 2022-10-14 15:10:04 UTC
+++ Cargo.lock
@@ -4186,13 +4186,12 @@ name = "socket2"
[[package]]
name = "socket2"
-version = "0.3.11"
+version = "0.3.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e8b74de517221a2cb01a53349cf54182acdc31a074727d3079068448c0676d85"
+checksum = "122e570113d28d773067fab24266b66753f6ea915758651696b6e35e49f88d6e"
dependencies = [
"cfg-if",
"libc",
- "redox_syscall",
"winapi 0.3.8",
]