- Feature Name:
- Start Date: 2019-12-06
- RFC PR: rust-lang/rfcs#2832
- Rust Issue: rust-lang/rust#108443
AddrParseError types available in
contexts by moving them into a
The motivation here is to provide common types for both
targets which in turn will ease the creation of libraries based around IP
addresses. Embedded IoT development is one area where this will be beneficial.
IP addresses are portable across all platforms and have no external
dependencies which is in line with the definition of the core library.
core::net::AddrParseError types are
Library developers should use
core::net to implement abstractions in order
for them to work in
no_std contexts as well.
Since https://github.com/rust-lang/rust/pull/78802 has been merged, IP and
socket address types are implemented in ideal Rust layout instead of wrapping
Formatting for these types has also been adjusted in
https://github.com/rust-lang/rust/pull/100640 in order to remove the dependency
This means the types are now platform-agnostic, allowing them to be moved from
std::net types to
core::net makes the core library less minimal.
Eliminates the need to use different abstractions for
Alternatively, move these types into a library other than
core, so they can be used without
std, and re-export them in
There was a prior discussion at
and an experimental branch from @Nemo157 at
ToSocketAddrs trait to
core::net as well. This depends on having