Commit Graph

76 Commits

Author SHA1 Message Date
cc24cceb1a add test cases 2018-03-27 21:48:29 -05:00
82fef85a02 Doc tests 2018-03-27 20:34:12 -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
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
482aed66e7 Add a html_root_url attribute 2017-07-30 12:38:13 +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
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
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
d368d2bf02 Use the new ? operator 2016-12-08 12:07:34 +00:00
8463a3fc5e Add ip_mask_to_prefix, ipv4_mask_to_prefix and ipv6_mask_to_prefix 2016-07-23 18:07:47 +01:00
3a083746f5 Remove code from lib.rs and import from submodules 2016-06-30 04:34:06 +02:00
0275491079 Implement an iterator for Ipv4Network 2016-06-29 20:11:01 +02:00
31d890735d Manually implement Display, uglier debug 2016-06-20 15:55:35 +02:00
b5b0856a04 Formatting 2016-06-20 13:20:40 +02:00
7dcbf53a0f Make IpNetworkError Clone,Eq,PartialEq 2016-06-20 13:20:28 +02:00
b50643fbae Make structs Copy,Hash,Eq,PartialEq 2016-06-20 13:18:44 +02:00
17e96ae764 Make the network structs/enums clonable 2016-06-20 01:00:19 +02:00
1bb9b2c794 Allow non-zero host bits in from_cidr 2016-06-18 08:29:33 +02:00
81a9029fa3 Add from_cidr test 2016-06-18 08:05:18 +02:00
97af56a7c7 Return Results since arguments can be invalid nets 2016-06-18 08:00:36 +02:00
8d57734a7d Make /32 net have size 1 2016-06-18 07:50:01 +02:00
b1837c10fa Add size and nth to Ipv4Network 2016-06-18 07:19:53 +02:00
dc763d2d03 Fix Ipv4Network::mask shift overflow bug 2016-06-18 06:32:03 +02:00
0f9416f3b4 Fix Ipv4Network::contains bug 2016-06-13 22:58:01 +02:00
e812eb66ca Drop the ip crate 2016-03-19 11:12:01 -07:00
af76578eac Add check that IP in CIDR is network 2016-02-12 21:26:12 +01:00
235399c7e7 Add from_cidr to parse strs 2016-02-12 21:25:40 +01:00
cff60d0cd9 Revert "Revert "Use the ip crate""
This reverts commit d5422c0fd7.
2016-02-12 10:48:10 -08:00
168a7b2dcf Remove redundant feature 2016-02-12 00:55:47 -08:00
d5422c0fd7 Revert "Use the ip crate"
This reverts commit 5f84d3a817.
2016-02-12 00:55:11 -08:00
42adf4ee93 Add a broadcast function for IPv4 2016-01-31 22:35:36 -08:00
d84dc6161a Fix the network function and associated tests 2016-01-31 22:29:41 -08:00