Commit Graph

81 Commits

Author SHA1 Message Date
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
264ff0a760 Merge pull request #6 from faern/nth-size-methods
Add size and nth to Ipv4Network
2016-06-17 22:52:17 -07: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
0516fc8716 Merge pull request #5 from faern/fix-mask-bug
Fix Ipv4Network::mask shift overflow bug
2016-06-17 22:12:45 -07:00
dc763d2d03 Fix Ipv4Network::mask shift overflow bug 2016-06-18 06:32:03 +02:00
958a3f896e Uprev 2016-06-13 23:10:37 -07:00
7c54f0c9ea Merge pull request #3 from faern/master
Fix Ipv4Network::contains bug
2016-06-13 23:08:58 -07: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
6c33091dc3 Update README.md 2016-02-18 01:20:52 -08:00
c74972a3b7 Merge pull request #2 from faern/master
Add from_cidr to parse strings
2016-02-12 14:09:49 -08: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
2ed204be0f Uprev for crates.io 2016-02-12 10:49:27 -08: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
af1cc62950 Uprev for crates.io 2016-01-31 22:40:31 -08:00
6cae23f69c Update clippy 2016-01-31 22:37:59 -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
eaa36f4b0b Return an instance from the ip method 2016-01-31 22:05:23 -08:00
5f84d3a817 Use the ip crate 2016-01-09 18:02:19 +05:30
af84388f00 Run rustfmt 2015-12-27 00:29:08 +05:30
58d45a705b Add clippy stuff to docs 2015-10-25 13:47:30 -07:00
f8f2d7a499 Some cleanups as reported by clippy 2015-10-25 13:46:31 -07:00
a3d9aa3026 Use clippy 2015-10-25 13:43:52 -07:00
7b5a3c056b Version bump 2015-08-12 00:22:18 -07:00
80194873d9 Update status 2015-08-11 17:31:59 -07:00
7ec219e90a Update example usage 2015-08-11 17:30:19 -07:00
b47592b833 Remove redundant function 2015-08-11 17:20:57 -07:00
c79edaf11c Version bump 2015-08-11 17:03:35 -07:00
26f9d1df55 Remove the unnecessary parentheses 2015-08-11 17:03:08 -07:00
e1d412efc4 Version bump 2015-08-11 17:02:15 -07:00
1b74cfda59 Implement a contains() method
This returns true if a given IP belongs to a subnet
2015-08-11 17:00:45 -07:00
f99c458597 Bump version 2015-08-02 18:34:01 -07:00
9bffd5c5ec Simplify API 2015-08-02 18:32:21 -07:00
3588e1b467 Add crates merit badge 2015-05-25 15:45:26 +05:30
4869e89dc4 Add a rust-ci docs config 2015-05-24 22:16:53 +05:30
e1cf05def5 Always build against nightly
The `u32::from` we use was not in 1.0 stable
2015-05-22 17:16:54 +05:30
b7f691533a Simplify network* functions 2015-05-22 12:58:40 +05:30
d3a4bf5b77 Bump version 2015-05-05 12:26:56 -07:00
3354f6c725 Also get rid of more unnecessary method 2015-05-05 12:26:16 -07:00
bbf8cb0964 Sync with nightly 2015-05-05 12:25:06 -07:00
aaf451db41 Bump version 2015-05-04 16:48:08 -07:00
8af99ddc30 Consolidate 2015-05-04 16:47:47 -07:00
d51eab196c Trying to make name resolution work 2015-05-03 01:09:03 -07:00