Commit Graph

156 Commits

Author SHA1 Message Date
7f684cf06e WARNING: src/lib.rs - IpNetwork::mask (line 83) Code block is not currently run as a test, but will in future versions of rustdoc. Please ensure this code block is a runnable test, or use the ignore directive. 2018-04-15 21:04:00 -05:00
72326bd96f use an option 2018-03-27 21:58:10 -05:00
411c71e900 cargo fmt 2018-03-27 21:48:34 -05:00
cc24cceb1a add test cases 2018-03-27 21:48:29 -05:00
fcdb0c6b87 simpler way of doing it 2018-03-27 21:39:15 -05:00
5fabbc91d5 If there is no prefix, default to number of bits ipv4/32, ipv6/128 2018-03-27 21:36:39 -05:00
82fef85a02 Doc tests 2018-03-27 20:34:12 -05:00
746342c0af Default to /32 for an IP 2018-03-27 20:34:07 -05:00
eddcc026cb Uprev for release 2018-03-15 08:45:16 +00:00
c9e25e15fa Add Serde Feature for IpNetwork 2018-03-14 19:00:38 -07:00
42eed8dbb5 Add IpNetwork::contains 2018-03-05 16:49:32 +02:00
a3528a8f43 Another round of formatting 2017-12-21 17:45:45 +00:00
023406419b Readability improvements as suggested by clippy 2017-11-08 16:59:56 +00:00
124330be88 avoid misleading message
Closes #61
2017-10-09 11:59:48 +02:00
8ee7f2d1ed Add two tests for send and sync
To prevent future regressions as the library evolves
2017-09-22 17:56:43 +01:00
bfafdc2c2f Uprev for new release 2017-09-07 18:29:18 +01:00
9db3d5c30d add From<IpAddr> for IpNetwork 2017-08-22 15:15:18 +00:00
a28098444e Fix annoying typo
prifex -> prefix
2017-08-14 18:05:22 +02:00
482aed66e7 Add a html_root_url attribute 2017-07-30 12:38:13 +01:00
910a52b64b Add a size method for Ipv6Network 2017-07-11 21:21:00 +01:00
2ee819a438 Add a broadcast method for Ipv6Network 2017-07-11 21:11:39 +01:00
1171e5ae94 Add a network method for Ipv6Network 2017-07-11 21:01:41 +01:00
99203160b9 Add an iterator for ipv6 network. (#49)
This is feature gated since i128 is not stable yet
2017-07-08 20:28:00 +01:00
ab7d5b32d0 Add PartialOrd and Ord instances for network types. 2017-05-16 10:34:11 +00:00
b70b551561 Merge pull request #43 from faern/fix-doc-test
Fix failing doc test
2017-04-03 09:22:18 +01:00
5020a99401 Add punctuation 2017-04-02 18:56:25 +02:00
24c9a24dae Fix failing doc test 2017-04-02 17:51:30 +02:00
b3fd9f4f48 Simplify IpNetwork::from_str impl and update docs 2017-04-02 17:50:20 +02:00
f61db46006 Implement Display for IpNetwork 2017-04-02 17:30:06 +02:00
c50ccbbd1a implement Error for IpNetworkError 2017-02-23 17:28:00 +09:00
e128b5965b Remove the offending doc test for now 2017-02-23 08:22:36 +00:00
0b71d8637f Add from_str helper to IpNetwork 2017-01-19 08:10:26 -08:00
4c6e2ef69d Remove some empty spaces 2017-01-10 17:41:19 +00:00
8f6710448a Add two methods to check IP version 2016-12-28 23:32:52 +00:00
e4d67e59a8 Implement conversion from v4 and v6 types to IpNetwork 2016-12-22 11:15:19 +00:00
c11ebdbd5b Docs update 2016-12-21 17:56:17 +00:00
021bb38573 Clean up some things as reported by clippy 2016-12-21 09:46:32 +00:00
76f4a889a5 Update clippy 2016-12-21 09:37:51 +00:00
d283ca6240 Implement mask for IpNetwork 2016-12-19 17:07:03 +00:00
56197b3d32 Add some docs for the top level enum 2016-12-19 16:42:25 +00:00
84721241c5 Cleanup parse_addr
It has been moved to `common`
2016-12-17 15:52:36 +00:00
c80c3682a8 Remove from_cidr 2016-12-17 15:48:22 +00:00
d368d2bf02 Use the new ? operator 2016-12-08 12:07:34 +00:00
1df7900ffe Implement FromStr for IPv6 2016-09-22 20:22:50 -07:00
c16cd32ed0 Mark from_cidr as deprecated
- Also refactored a bit
- Updated doc tests
2016-09-21 18:40:13 -07:00
7b829e5e5a Implement FromStr for Ipv4Network
This should be more idiomatic Rust, following the examples in stdlib
2016-09-21 14:47:20 -07:00
8463a3fc5e Add ip_mask_to_prefix, ipv4_mask_to_prefix and ipv6_mask_to_prefix 2016-07-23 18:07:47 +01:00
6a7838c2b0 Add mask and contains to Ipv6Network 2016-07-14 22:20:02 +02:00
6bb344bab3 Make mask, network and broadcast return Ipv4Addr 2016-06-30 19:41:49 +02:00
7346d133b3 rust-fmt 2016-06-30 19:41:48 +02:00