rust/library
Jacob Pratt 4ce473ccba
Rollup merge of #136699 - joboet:netaddr_from_inner, r=cuviper
std: replace the `FromInner` implementation for addresses with private conversion functions

Having these implementation available crate-wide means that platforms not using sockets for their networking code have to stub out the libc definitions required to support them. This PR moves the conversions to private helper functions that are only available where actually needed.

I also fixed the signature of the function converting from a C socket address to a Rust one: taking a reference to a `sockaddr_storage` resulted in unsound usage inside  `LookupHost::next`, which could create a reference to a structure smaller than `sockaddr_storage`. Thus I've replaced the argument type with a pointer and made the function `unsafe`.
2025-02-12 20:09:59 -05:00
..
alloc Rollup merge of #136714 - tgross35:update-builtins, r=tgross35 2025-02-10 16:38:26 +01:00
backtrace@f8cc6ac9ac Bump backtrace to 0.3.75 2025-01-03 20:16:52 -08:00
core Rollup merge of #134090 - veluca93:stable-tf11, r=oli-obk 2025-02-12 20:09:56 -05:00
coretests Rollup merge of #136705 - compiler-errors:edition-library, r=jhpratt 2025-02-10 00:51:54 -08:00
panic_abort Mark extern blocks as unsafe 2025-02-09 17:11:13 +00:00
panic_unwind Rollup merge of #136705 - compiler-errors:edition-library, r=jhpratt 2025-02-10 00:51:54 -08:00
portable-simd Merge commit '3383cfbd3572465febc7a8f816a46304373de46a' into sync-from-portable-simd-2025-01-18 2025-01-18 15:37:14 -05:00
proc_macro proc_macro: add #![warn(unreachable_pub)] 2025-01-20 18:46:29 +01:00
profiler_builtins compiler & tools dependencies: 2024-12-17 17:41:00 +00:00
rtstartup Mark extern blocks as unsafe 2025-02-09 17:11:13 +00:00
rustc-std-workspace-alloc
rustc-std-workspace-core update rustc-std-workspace crates 2024-11-04 07:45:15 +01:00
rustc-std-workspace-std
std Rollup merge of #136699 - joboet:netaddr_from_inner, r=cuviper 2025-02-12 20:09:59 -05:00
stdarch@684de0d6fe Bump stdarch 2024-12-24 19:00:57 +01:00
sysroot Make profiler_builtins an optional dependency of sysroot, not std 2024-10-17 22:08:36 +11:00
test Rollup merge of #136705 - compiler-errors:edition-library, r=jhpratt 2025-02-10 00:51:54 -08:00
unwind Mark extern blocks as unsafe 2025-02-09 17:11:13 +00:00
windows_targets Mark extern blocks as unsafe 2025-02-09 17:11:13 +00:00
Cargo.lock Update compiler-builtins to 0.1.146 2025-02-07 20:58:28 +00:00
Cargo.toml Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00