rust/library/std
joboet 80c60fe783
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 14:13:35 +01:00
..
benches Move std::time unit tests to integration tests 2025-01-26 10:28:04 +00:00
src std: replace the FromInner implementation for addresses with private conversion functions 2025-02-12 14:13:35 +01:00
tests Rollup merge of #136805 - RalfJung:miri-win-delete-self, r=Noratrieb 2025-02-10 00:51:58 -08:00
build.rs Enable f128 tests on all non-buggy platforms 🎉 2024-11-03 19:33:04 -06:00
Cargo.toml Update compiler-builtins to 0.1.146 2025-02-07 20:58:28 +00:00