Releases: stbuehler/rust-cidr
Releases · stbuehler/rust-cidr
cidr 0.3.0
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 - bothnet
anderror
now incore
- move to bitstring 0.2
cidr 0.2.3
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 fallbacksoverflowing_add
andoverflowing_sub
methods onInet
types
cidr 0.2.2
0.2.2 - 2023-06-25
- Make all functions const if possible
cidr 0.2.1
0.2.1 - 2021-10-08
- Fix major problems in the
BitString
trait implementation forAnyIpCidr
cidr 0.2.0
Added
- Implement
IntoIterator
forIpCidr
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. Usecidr = { version = "0.2.0", features = [ "bitstring" ] }
to enable it. - Removed
serde
from default features. Usecidr = { version = "0.2.0", features = [ "serde" ] }
to enable it. - Added
std
feature; enabled by default. Also mandatory for now asstd::net
isn't available incore
. - Seal trait implementations
- Renamed
Inet::next
toInet::increment
- Iterators (on
IpCidr
structs) now returnInet
items instead of flat addresses. Use.addresses()
on the iterator type to only iterate over the addresses.