Skip to content

Releases: rye/rust-netaddr2

Version 0.10.0

06 Jul 12:30
@rye rye
v0.10.0
75af63a
Compare
Choose a tag to compare

Changed

  • Breaking: Netv4Addr::addr, Netv4Addr::mask, Netv6Addr::addr, and Netv6Addr::mask all now return Ipv4Addr or Ipv6Addr respectively instead of &Ipv4Addr or &Ipv6Addr.

  • Breaking: Replaced the derive'd Ord impl with our own explicit implementation.
    If you were using our old ordering, bare in mind that the behavior has changed.

    Previously, we just used the derived Ord comparison on the underlying Ip<...>Addr structs in field-wise ordering.
    Now, a Net<...>Addr struct is considered greater than another if its addr is equal but its mask is greater, or otherwise if its addr is greater.
    For example, 1.0.0.0/8 < 2.0.0.0/8, 1.0.0.0/7 < 1.0.0.0/8, etc.

  • Internal fixes for the tests

  • Adjusted CI configuration

Version 0.9.0

27 Feb 01:11
@rye rye
Compare
Choose a tag to compare

Changed

  • Breaking: Adjusted the signature of the Contains trait to take a type parameter.

    Most users should not be affected in any way by this change, as the .contains() method still has the same syntax. However, the types for which containment can be checked are now explicitly enumerated.

Version 0.8.0

26 Feb 16:53
@rye rye
Compare
Choose a tag to compare

Added

  • is_cidr method on NetAddr, Netv4Addr, and Netv6Addr to return whether the represented netaddr is CIDR or not.

Changed

  • Updated the serde::de behavior to be slightly more informative and standard.

Version 0.7.1

12 Jan 17:15
@rye rye
Compare
Choose a tag to compare

Added

  • Documented a few undocumented types.

Version 0.7.0

24 Dec 03:28
@rye rye
Compare
Choose a tag to compare

This release changes the structure of the Error types.

To upgrade, you should:

  • Migrate uses of netaddr2::netaddr_error::NetAddrError to netaddr2::error::Error (much cleaner!)

  • Consider adopting the new netaddr2::error::Result type, which, like the std::io::Error type, encapsulates your desired type with a Result whose variant is a netaddr2::error::Error.

Version 0.6.1

18 Nov 17:04
@rye rye
Compare
Choose a tag to compare

This release fixes an issue in the docs.rs metadata key.

Version 0.6.0

18 Nov 14:42
@rye rye
Compare
Choose a tag to compare

In this release, we added implementations for the serde::Serialize and serde::Deserialize traits, which are gated behind the not-yet-default serde feature.

Version 0.5.0

20 Oct 14:24
@rye rye
Compare
Choose a tag to compare

In this release, a few impls for the core::fmt::Display trait are added for the key data structures.

Version 0.4.1

09 Oct 18:14
@rye rye
Compare
Choose a tag to compare

Since version 0.4.0, a large amount of documentation and a few tests were added.

Version 0.4.0

25 Aug 16:32
@rye rye
Compare
Choose a tag to compare
v0.4.0

Version 0.4.0