Skip to content

Releases: stbuehler/rust-cidr

cidr 0.3.0

30 Sep 15:15
Compare
Choose a tag to compare

0.3.0 - 2024-09-30

  • remove short IPv4 address support in FromStr implementations
  • implement From<Ip*Addr> for cidr and inet types
  • remove std requirement - both net and error now in core
  • move to bitstring 0.2

cidr 0.2.3

25 Jun 14:02
Compare
Choose a tag to compare

0.2.3 - 2024-06-25

  • parsers module:
    • inet_addr compatible parser
    • parser combinators to build custom parsing
    • "short IPv4 address" parser (incompatible with inet_addr).
  • short IPv4 address support in FromStr implementations is deprecated and
    going to be removed in 0.3.0
  • no_unsafe feature to use safe but slower fallbacks
  • overflowing_add and overflowing_sub methods on Inet types

cidr 0.2.2

25 Jun 17:53
Compare
Choose a tag to compare

0.2.2 - 2023-06-25

  • Make all functions const if possible

cidr 0.2.1

25 Jun 17:52
Compare
Choose a tag to compare

0.2.1 - 2021-10-08

  • Fix major problems in the BitString trait implementation for AnyIpCidr

cidr 0.2.0

09 Aug 15:19
cidr-0.2.0
Compare
Choose a tag to compare

Added

  • Implement IntoIterator for IpCidr structs
  • Support (and require) various default traits
  • InetPair: pair of two addresses in the same network
  • Implement "trait" functions directly on data types and only forward in trait impl (#6); this makes it easier to use datastructs without traits in scope.

Changed

  • Made bitstring dependency optional. Use cidr = { version = "0.2.0", features = [ "bitstring" ] } to enable it.
  • Removed serde from default features. Use cidr = { version = "0.2.0", features = [ "serde" ] } to enable it.
  • Added std feature; enabled by default. Also mandatory for now as std::net isn't available in core.
  • Seal trait implementations
  • Renamed Inet::next to Inet::increment
  • Iterators (on IpCidr structs) now return Inet items instead of flat addresses. Use .addresses() on the iterator type to only iterate over the addresses.