Commit Graph

117 Commits

Author SHA1 Message Date
d368d2bf02 Use the new ? operator 2016-12-08 12:07:34 +00:00
c77e351fb0 Uprev for crates.io 2016-09-23 23:15:12 -07:00
b4b523e586 Merge pull request #20 from achanda/fromstr6
Implement FromStr for IPv6
2016-09-22 20:38:03 -07:00
1df7900ffe Implement FromStr for IPv6 2016-09-22 20:22:50 -07:00
27ac621e2c Merge pull request #19 from achanda/fromstr4
Implement FromStr for Ipv4Network
2016-09-22 20:08:45 -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
b110196c96 Merge pull request #17 from ebarnard/from_addr_and_mask
Add ip_mask_to_prefix, ipv4_mask_to_prefix and ipv6_mask_to_prefix
2016-07-24 19:20:13 -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
e9aeab4cb4 Merge pull request #18 from ebarnard/ipv6
Add mask and contains to Ipv6Network
2016-07-18 13:31:26 -07:00
6a7838c2b0 Add mask and contains to Ipv6Network 2016-07-14 22:20:02 +02:00
289ec43324 Uprev for crates.io 2016-07-04 10:50:23 -07:00
46f454d528 Merge pull request #16 from faern/one-return-value
One return value
2016-07-04 10:49:08 -07:00
bdfba86fe9 Correct my email 2016-07-02 00:15:10 -07: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
3286c5b9e8 Uprev for crates.io 2016-06-29 20:34:35 -07:00
9d7e6909f5 Merge pull request #14 from faern/update-authors
Add Linus to authors
2016-06-29 20:29:27 -07:00
dd01e59c5f Add Linus to authors 2016-06-30 05:27:09 +02:00
7785a1cf81 Merge pull request #13 from faern/simplify-broadcast
Simplify ipv4 broadcast implementation
2016-06-29 20:20:47 -07:00
3ebfd5d973 Simplify ipv4 broadcast implementation 2016-06-30 05:18:36 +02:00
5df3246b83 Merge pull request #12 from faern/split-files
Split library into modules
2016-06-29 20:13:40 -07:00
e07de702db Add documentation to some IPv4 methods 2016-06-30 05:08:54 +02:00
1d5ea2956f Move ipv4 iter method after constructors 2016-06-30 04:35:33 +02:00
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