Skip to content

Commit

Permalink
Use core::net::Ip{Addr, V4Addr, V6Addr}
Browse files Browse the repository at this point in the history
Re-export the types from the standard library instead of duplicating
their code. The types have been stable since Rust 1.6 and this crate has
a MSRV of 1.60.

Instead of re-exporting the equivalent types from core::net at the crate
root, this change simply removes the names. This is semver-incompatible,
but re-exporting types is also incompatible since a trait implementation
in a consuming crate for, e.g., core::net::IpAddr and pki_types::IpAddr
would now conflict.
  • Loading branch information
akonradi-signal committed Oct 1, 2024
1 parent 9a1da55 commit 7f92581
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 712 deletions.
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ mod server_name;
#[cfg(feature = "alloc")]
pub mod pem;

pub use server_name::{
AddrParseError, DnsName, InvalidDnsNameError, IpAddr, Ipv4Addr, Ipv6Addr, ServerName,
};
pub use server_name::{DnsName, InvalidDnsNameError, ServerName};

/// A DER-encoded X.509 private key, in one of several formats
///
Expand Down
Loading

0 comments on commit 7f92581

Please sign in to comment.