Commit Graph

243 Commits

Author SHA1 Message Date
3a083746f5 Remove code from lib.rs and import from submodules 2016-06-30 04:34:06 +02:00
5950239744 Add code to submodules 2016-06-30 04:33:13 +02:00
ec16a7d342 Merge pull request #10 from faern/iterator
Implement an iterator for Ipv4Network
2016-06-29 11:31:51 -07:00
0275491079 Implement an iterator for Ipv4Network 2016-06-29 20:11:01 +02:00
3e1297fa5c Merge pull request #8 from faern/clonable-structs
Implement useful traits on the Ip*Network structs
2016-06-20 22:56:56 -07: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
f0fcd60975 Publish a new version 2016-06-17 23:32:31 -07:00
a1b1b5aa46 Merge pull request #7 from faern/result-based-constructor
Result based constructor
2016-06-17 23:31:52 -07: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
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