f3ac9ba3fe
Merge pull request #113 from achanda/bench-netmask
...
Add a benchmark for parsing IPv4 netmask
2020-01-05 11:20:31 +00:00
bc1064e5f0
Add a benchmark for parsing IPv4 netmask
2020-01-05 11:14:06 +00:00
ddc9ef2f7b
Merge pull request #112 from vorner/netmask-parse
...
Be able to parse the netmask format
2020-01-04 10:19:35 +00:00
87ea7b24fa
Be able to parse the netmask format
...
Allow accepting the netmask format, eg 192.168.1.0/255.255.255.0, in
addition to the more modern /24 prefix version.
Adding support for IPv4 only, as IPv6 never actually used that format in
practice.
Closes #107 .
2019-12-21 16:19:20 +01:00
08126f5103
Merge pull request #109 from mullvad/optional-serde
...
Make the serde dependency optional
2019-12-13 16:23:08 +00:00
376081d253
Merge pull request #108 from vorner/iterator
...
Iterator
2019-12-13 16:22:50 +00:00
fa85cdb500
Test without features on CI
2019-12-11 12:51:39 +01:00
fa5deed40b
Make the serde dependency optional
2019-12-11 12:51:39 +01:00
5b09d82d43
Fix bug with overflow in iterator
2019-12-11 09:40:55 +01:00
dbf366cfdf
Iterators: reproducer for overflow on high end of iteration
2019-12-11 09:40:55 +01:00
6cbb011597
Iterators for the IpNetwork
...
Version-agnostic iterator in addition to the version specific ones.
2019-12-11 09:40:55 +01:00
f7d9524f70
Make the iterators slightly better
...
* Implement some useful traits on them.
* Make reference an into-iterator.
2019-12-11 09:40:55 +01:00
e1f8566301
Merge pull request #110 from mullvad/metadata-cleanup
...
Metadata cleanup
2019-12-10 12:16:02 +00:00
a3197a8411
Remove the "heavily WIP" part of description
2019-12-10 09:40:08 +01:00
0479ca45a9
Add and remove appropriate keywords and categories
2019-12-10 09:40:08 +01:00
11025d3b1a
Remove documentation URL that is already default
2019-12-10 09:28:26 +01:00
43a38d4117
Merge pull request #103 from lucab/ups/parse-net-pair
...
ipnetwork: add netmask constructors
2019-11-28 13:52:55 +00:00
152f1a8393
ipnetwork: add netmask constructors
...
This adds constructors to build all network types from a network
address and network mask pair.
2019-11-27 17:20:59 +00:00
31fc25f9ce
cargo: rustfmt whole project
2019-11-27 15:50:47 +00:00
bdaa8a7843
Merge pull request #101 from achanda/release-v0.15.1
...
Uprev for a new release
v0.15.1
2019-11-23 13:54:22 +00:00
d54f463f86
Uprev for a new release
2019-11-23 13:48:22 +00:00
fb782086ce
Merge pull request #100 from LukasKalbertodt/master
...
Use `slice::iter` instead of `into_iter` to avoid future breakage
2019-10-30 22:17:22 +00:00
26706b3790
Use slice::iter
instead of into_iter
to avoid future breakage
...
`an_array.into_iter()` currently just works because of the autoref
feature, which then calls `<[T] as IntoIterator>::into_iter`. But
in the future, arrays will implement `IntoIterator`, too. In order
to avoid problems in the future, the call is replaced by `iter()`
which is shorter and more explicit.
2019-10-30 15:32:11 +01:00
2eed2de227
Merge pull request #99 from achanda/action-config
...
Add a github action config
2019-10-12 16:28:31 +01:00
7395af2658
Show current git branch
2019-10-12 16:17:29 +01:00
fefd674721
Add a checkout step
2019-10-12 16:11:31 +01:00
20ed033826
Add a github action config
2019-10-09 22:56:14 +01:00
7af6e16f98
Merge pull request #98 from achanda/release-0.15
...
Uprev for a new release
v0.15.0
2019-09-12 20:34:06 +01:00
9e42aaeb3e
Uprev for a new release
2019-09-12 20:25:48 +01:00
2b34ba991a
Merge pull request #96 from achanda/dependabot/cargo/criterion-0.3.0
...
Update criterion requirement from 0.2.9 to 0.3.0
2019-08-26 08:25:21 +01:00
2dff6a0863
Update criterion requirement from 0.2.9 to 0.3.0
...
Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs ) to permit the latest version.
- [Release notes](https://github.com/bheisler/criterion.rs/releases )
- [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/bheisler/criterion.rs/compare/0.2.9...0.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-26 05:35:47 +00:00
a45e76c92f
Merge pull request #95 from faern/upgrade-to-rust2018
...
Upgrade to Rust 2018 edition
2019-03-25 16:57:22 +00:00
a6dfadc21d
Manual import cleanup
2019-03-25 15:24:17 +01:00
61eeb5843f
Run cargo fix --edition-idioms
2019-03-25 15:15:41 +01:00
d8f3cc1992
Upgrade to edition 2018
2019-03-25 15:15:21 +01:00
c2d4b9aeae
Run cargo fix --edition
2019-03-25 15:13:50 +01:00
3479b6f272
Merge pull request #94 from mullvad/fix-deserialization
...
Deserialize from String rather &str for Ipv4Network and Ipv6Network
2019-02-20 16:49:28 +01:00
10d12cd945
Deserialize from String rather &str for ipnetwork:Ipv{4,6}Network
2019-02-20 11:07:29 +00:00
47a539f2f1
Merge pull request #93 from achanda/new-methods
...
Implement is_subnet_of, is_supernet_of and overlaps
2019-02-07 18:43:47 +01:00
e7c85b5b81
Implement overlaps for both types
2019-02-06 23:29:46 +00:00
439a0deeb7
Implement is_subnet_of and is_supernet_of
2019-02-06 23:14:07 +00:00
b2c458e6f1
Merge pull request #91 from achanda/contains-bench
...
Track benchmark for contains
2019-02-03 01:10:09 +01:00
1b06452e88
Optimise contains for IPv4
2019-02-02 23:57:25 +00:00
2b9936fa8e
Track benchmark for contains
2019-02-02 23:36:08 +00:00
553fa0ba1c
Merge pull request #90 from achanda/parse-bench
...
Add a benchmark for CIDR parsing
2019-02-03 00:22:15 +01:00
a19f24a9c6
Add a benchmark for CIDR parsing
...
Also optimise the cidr_parts implementation
2019-02-02 21:54:16 +00:00
aff0419a75
Merge pull request #89 from achanda/release-0.14.0
...
Prepare new release
v0.14.0
2019-02-01 23:22:41 +01:00
1f96439a87
Prepare new release
2019-02-01 22:16:38 +00:00
25d7dc19d1
Merge pull request #88 from mullvad/fix-deserialization
...
Added custom deserialization and serialization for ipnetwork::IpNetwork
2019-02-01 23:11:31 +01:00
d8ce2e4dbc
Added custom deserialization and serialization for ipnetwork::IpNetwork
2019-02-01 12:01:33 +00:00