cidr
IP network and IP host within network types
0.3.2
27M downloads/mo
#1803 most downloaded on crates.io
stbuehler/rust-cidr
What this package is like to depend on
Last release 8 months ago
18 Dec 2025
Ships fairly regularly
a new release about every 11 months
Some releases are documented
notes for 6 of 12 stable releases
1 version withdrawn
withdrawn after publishing
9 years old
13 releases · first in 2017
1 release in the last 12 months
see the full history below
Release timeline
13 releases · Mar 2017 to Dec 2025Releases
latest 13-
0.3.218 Dec 2025Release notes
Open source →Ipv*CidrandIpv*Inet: add methods to get reference to stored (first / host) address
-
0.3.118 Jan 2025Release notes
Open source →- raise serde version to support no-std builds
- enable all Error impls in no-std (actually making std-feature unused)
-
0.3.030 Sep 2024Release notes
Open source →0.3.0 - 2024-09-30
- remove short IPv4 address support in
FromStrimplementations - implement
From<Ip*Addr>for cidr and inet types - remove
stdrequirement - bothnetanderrornow incore - move to bitstring 0.2
Release notes
Open source →- remove short IPv4 address support in
FromStrimplementations - implement
From<Ip*Addr>for cidr and inet types - remove
stdrequirement - bothnetanderrornow incore - move to bitstring 0.2
- remove short IPv4 address support in
-
0.2.325 Jun 2024Release notes
Open source →0.2.3 - 2024-06-25
parsersmodule:inet_addrcompatible parser- parser combinators to build custom parsing
- "short IPv4 address" parser (incompatible with
inet_addr).
- short IPv4 address support in
FromStrimplementations is deprecated and
going to be removed in 0.3.0 no_unsafefeature to use safe but slower fallbacksoverflowing_addandoverflowing_submethods onInettypes
Release notes
Open source →parsersmodule:inet_addrcompatible parser- parser combinators to build custom parsing
- "short IPv4 address" parser (incompatible with
inet_addr).
- short IPv4 address support in
FromStrimplementations is deprecated and going to be removed in 0.3.0 no_unsafefeature to use safe but slower fallbacksoverflowing_addandoverflowing_submethods onInettypes
-
0.2.225 Jun 2023 -
0.2.108 Oct 2021Release notes
Open source →0.2.1 - 2021-10-08
- Fix major problems in the
BitStringtrait implementation forAnyIpCidr
- Fix major problems in the
-
0.2.009 Aug 2021 withdrawnRelease notes
Open source →Added
- Implement
IntoIteratorforIpCidrstructs - 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
bitstringdependency optional. Usecidr = { version = "0.2.0", features = [ "bitstring" ] }to enable it. - Removed
serdefrom default features. Usecidr = { version = "0.2.0", features = [ "serde" ] }to enable it. - Added
stdfeature; enabled by default. Also mandatory for now asstd::netisn't available incore. - Seal trait implementations
- Renamed
Inet::nexttoInet::increment - Iterators (on
IpCidrstructs) now returnInetitems instead of flat addresses. Use.addresses()on the iterator type to only iterate over the addresses.
Release notes
Open source →Added
- Implement
IntoIteratorforIpCidrstructs - 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
bitstringdependency optional. Usecidr = { version = "0.2.0", features = [ "bitstring" ] }to enable it. - Removed
serdefrom default features. Usecidr = { version = "0.2.0", features = [ "serde" ] }to enable it. - Added
stdfeature; enabled by default. Also mandatory for now asstd::netisn't available incore. - Seal trait implementations
- Renamed
Inet::nexttoInet::increment - Iterators (on
IpCidrstructs) now returnInetitems instead of flat addresses. Use.addresses()on the iterator type to only iterate over the addresses.
- Implement
-
0.1.127 Aug 2020Nothing published for this version
-
0.1.026 Feb 2019Nothing published for this version
-
0.0.424 Jan 2018Nothing published for this version
-
0.0.310 Jul 2017Nothing published for this version
-
0.0.210 Mar 2017Nothing published for this version
-
0.0.106 Mar 2017Nothing published for this version