Skip to content

Releases: krisprice/ipnet

Add new_assert implementations #57

07 Sep 22:30
6c72e9f
Compare
Choose a tag to compare
  • Add new_assert implementations #57

Add ser_as_str feature to serialize using serialize_str()

22 Oct 17:25
Compare
Choose a tag to compare
  • Add ser_as_str feature to serialize using serialize_str() #52

Add no_std support on nightly

26 Jun 22:34
6155c21
Compare
Choose a tag to compare
  • Add no_std support on nightly #51

Allow to invoke some functions as const

11 Dec 18:34
5765690
Compare
Choose a tag to compare
  • Allow to invoke some functions as const fn #43

Add IP netmask conversion and constructors

07 Dec 22:22
Compare
Choose a tag to compare
  • Add IP netmask to prefix conversion functions and new with_netmask() constructors.

Fix JsonSchema implementation

16 Apr 23:21
caf3129
Compare
Choose a tag to compare
  • Manually implement JsonSchema for IpNet, Ipv4Net, Ipv6Net #41 because default derived JsonSchema does not correspond to Serde representation #40
  • Migrate to edition 2018

Fix Error::description() deprecation warning

15 Jun 01:45
Compare
Choose a tag to compare
  • Merge Fix Error::description() deprecation warning #28.

Implement Default on IpNet, Ipv4Net, and Ipv6Net

16 Mar 01:24
Compare
Choose a tag to compare
  • Merge @imp's Default implementation. See #18. Ipv4Net and Ipv6Net now default to 0.0.0.0/0 and ::/0 respectively. IpNet defaults to the 0/0 Ipv4Net.

  • Add #[allow(arithmetic_overflow)] for Ipv4AddrRange::count() and Ipv6AddrRange::count(). Since 1.43.0-nightly it gives a build error but this panic behavior is desired. In future it may be replaced with explicit use of panic!. See #21.

Implement conversion from IpAddr types to IpNet types

02 Feb 22:43
Compare
Choose a tag to compare
  • Implement From<IpAddr>, From<Ipv4Addr>, and From<Ipv6Addr> for IpNet, Ipv4Net, and Ipv6Net respectively.

Implement Iterator methods, FusedIterator, and DoubleEndedIterator

08 Nov 20:54
2880087
Compare
Choose a tag to compare
  • Implement FusedIterator for IpAddrRange, Ipv4AddrRange, Ipv6AddrRange, IpSubnets, Ipv4Subnets, and Ipv6Subnets.

  • Implement DoubleEndedIterator for IpAddrRange, Ipv4AddrRange, Ipv6AddrRange.

  • Implement custom count(), last(), max(), min(), nth(), and size_hint() for IpAddrRange, Ipv4AddrRange, Ipv6AddrRange.