Skip to content

Version 0.10.0

Latest
Compare
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