Skip to content

Releases: rye/rust-netaddr2

Version 0.10.0

Choose a tag to compare

@rye rye released this 06 Jul 12:30
v0.10.0
75af63a

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

Choose a tag to compare

@rye rye released this 27 Feb 01:11

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

Choose a tag to compare

@rye rye released this 26 Feb 16:53

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

Choose a tag to compare

@rye rye released this 12 Jan 17:15

Added

  • Documented a few undocumented types.

Version 0.7.0

Choose a tag to compare

@rye rye released this 24 Dec 03:28

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

Choose a tag to compare

@rye rye released this 18 Nov 17:04

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

Version 0.6.0

Choose a tag to compare

@rye rye released this 18 Nov 14:42

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

Choose a tag to compare

@rye rye released this 20 Oct 14:24

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

Version 0.4.1

Choose a tag to compare

@rye rye released this 09 Oct 18:14

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

Version 0.4.0

Choose a tag to compare

@rye rye released this 25 Aug 16:32
v0.4.0

Version 0.4.0