Commit Graph

168 Commits

Author SHA1 Message Date
2b21f38171 Change return type of Ipv4Network::size to u32
Also, generalize size over IpvNetwork
NOTE: this is a breaking change
2018-11-21 15:48:29 +00:00
a8edccafa1 Export network and broadcast for IpNetwork
Adopted from https://github.com/achanda/ipnetwork/pull/78
2018-11-10 21:04:41 +00:00
1f3d42d89f Release 0.13.1 2018-08-31 23:27:53 +01:00
5e7eb0bd1b Parse IpAddr using Ipv4Addr::from_str 2018-05-27 19:26:11 -05:00
9ac9df11e2 Uprev for release 2018-05-12 14:04:16 +01:00
bbcc53cd94 Remove the feature flag for 128 bit integers
Since it is stable now
2018-05-12 13:53:59 +01:00
2286d58728 cargo fmt and clippy 2018-04-17 19:28:45 -05:00
c6ead9d654 remove serde feature flag 2018-04-17 19:28:38 -05:00
de707e35ae Remove with-serde in favor of just 'serde'
https://rust-lang-nursery.github.io/api-guidelines/naming.html#feature-names-are-free-of-placeholder-words-c-feature
2018-04-17 17:03:42 -05:00
4e97146605 No need to implement serialize/deserialize for enum, use serde(untagged) 2018-04-17 06:30:44 -05:00
4414ae4f0f direct serialize/deserialize from string/to string 2018-04-16 19:25:22 -05:00
15fa093618 cargo fmt 2018-04-15 21:15:36 -05:00
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