1 | [package] |
2 | name = "ipnet" |
3 | version = "2.9.0" # Remember to update html_root_url |
4 | authors = ["Kris Price <kris@krisprice.nz>" ] |
5 | description = "Provides types and useful methods for working with IPv4 and IPv6 network addresses, commonly called IP prefixes. The new `IpNet`, `Ipv4Net`, and `Ipv6Net` types build on the existing `IpAddr`, `Ipv4Addr`, and `Ipv6Addr` types already provided in Rust's standard library and align to their design to stay consistent. The module also provides useful traits that extend `Ipv4Addr` and `Ipv6Addr` with methods for `Add`, `Sub`, `BitAnd`, and `BitOr` operations. The module only uses stable feature so it is guaranteed to compile using the stable toolchain." |
6 | license = "MIT OR Apache-2.0" |
7 | repository = "https://github.com/krisprice/ipnet" |
8 | keywords = ["IP" , "CIDR" , "network" , "prefix" , "subnet" ] |
9 | categories = ["network-programming" ] |
10 | readme = "README.md" |
11 | documentation = "https://docs.rs/ipnet" |
12 | edition = "2018" |
13 | |
14 | [features] |
15 | default = ["std" ] |
16 | std = [] |
17 | # Implements "schemars::JsonSchema". Also implies "serde". |
18 | json = ["serde" , "schemars" ] |
19 | ser_as_str = ["heapless" ] |
20 | |
21 | [dependencies] |
22 | serde = { package = "serde" , version = "1" , features = ["derive" ], optional = true, default-features=false } |
23 | schemars = { version = "0.8" , optional = true } |
24 | heapless = { version = "0" , optional = true } |
25 | |
26 | [dev-dependencies] |
27 | serde_test = "1" |
28 | |
29 | [badges] |
30 | travis-ci = { repository = "krisprice/ipnet" } |
31 | |