1
0
mirror of https://github.com/vbrandl/bind9-api.git synced 2025-04-21 01:57:00 +02:00

Compare commits

...

124 Commits

Author SHA1 Message Date
6688ffebbc
Update dependencies
Applyed `cargo update`
2023-12-27 13:18:29 +01:00
Valentin Brandl
bee19e4c78 Document building the project 2020-11-30 16:40:07 +01:00
Valentin Brandl
be5c8c6e62 Fix deprecation 2020-11-30 16:35:31 +01:00
Valentin Brandl
55aa95a41c Fix breaking change in ToHex crate 2020-11-30 16:35:19 +01:00
Valentin Brandl
a31c30a3b0
Merge pull request #72 from vbrandl/dependabot/cargo/reqwest-0.9.24
Bump reqwest from 0.9.22 to 0.9.24
2020-04-04 13:41:26 +02:00
dependabot-preview[bot]
27cba3d460
Bump reqwest from 0.9.22 to 0.9.24
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.9.22 to 0.9.24.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/v0.9.24/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.9.22...v0.9.24)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-04 11:35:01 +00:00
Valentin Brandl
ebd64545d4
Merge pull request #87 from vbrandl/dependabot/cargo/pretty_env_logger-0.4.0
Bump pretty_env_logger from 0.3.1 to 0.4.0
2020-04-04 13:33:50 +02:00
dependabot-preview[bot]
5e1e171584
Bump pretty_env_logger from 0.3.1 to 0.4.0
Bumps [pretty_env_logger](https://github.com/seanmonstar/pretty-env-logger) from 0.3.1 to 0.4.0.
- [Release notes](https://github.com/seanmonstar/pretty-env-logger/releases)
- [Commits](https://github.com/seanmonstar/pretty-env-logger/compare/v0.3.1...v0.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-04 11:32:05 +00:00
Valentin Brandl
a498428247
Merge pull request #91 from vbrandl/dependabot/cargo/failure-0.1.7
Bump failure from 0.1.6 to 0.1.7
2020-04-04 13:30:44 +02:00
Valentin Brandl
69c6530a2a
Merge pull request #94 from vbrandl/dependabot/cargo/serde_json-1.0.50
Bump serde_json from 1.0.47 to 1.0.50
2020-04-04 13:30:25 +02:00
Valentin Brandl
0e3ed4554d
Merge pull request #76 from vbrandl/dependabot/cargo/http-0.1.21
[Security] Bump http from 0.1.17 to 0.1.21
2020-04-04 13:23:47 +02:00
dependabot-preview[bot]
0fcd919e60
Bump serde_json from 1.0.47 to 1.0.50
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.47 to 1.0.50.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.47...v1.0.50)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-30 04:16:51 +00:00
dependabot-preview[bot]
05511e3526
Bump failure from 0.1.6 to 0.1.7
Bumps [failure](https://github.com/rust-lang-nursery/failure) from 0.1.6 to 0.1.7.
- [Release notes](https://github.com/rust-lang-nursery/failure/releases)
- [Changelog](https://github.com/rust-lang-nursery/failure/blob/master/RELEASES.md)
- [Commits](https://github.com/rust-lang-nursery/failure/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-06 04:19:47 +00:00
dependabot-preview[bot]
f68a33f85c
[Security] Bump http from 0.1.17 to 0.1.21
Bumps [http](https://github.com/hyperium/http) from 0.1.17 to 0.1.21. **This update includes security fixes.**
- [Release notes](https://github.com/hyperium/http/releases)
- [Changelog](https://github.com/hyperium/http/blob/v0.1.21/CHANGELOG.md)
- [Commits](https://github.com/hyperium/http/compare/v0.1.17...v0.1.21)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-12 19:26:49 +00:00
Valentin Brandl
054760b041
Merge pull request #73 from vbrandl/dependabot/cargo/serde-1.0.104
Bump serde from 1.0.101 to 1.0.104
2020-02-12 20:25:13 +01:00
dependabot-preview[bot]
6aacdd0ecb
Bump serde from 1.0.101 to 1.0.104
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.101 to 1.0.104.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.104)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-12 19:25:04 +00:00
Valentin Brandl
2b63223462
Merge pull request #77 from vbrandl/dependabot/cargo/toml-0.5.6
Bump toml from 0.5.3 to 0.5.6
2020-02-12 20:24:11 +01:00
Valentin Brandl
eb94a3cc41
Merge pull request #74 from vbrandl/dependabot/cargo/serde_derive-1.0.104
Bump serde_derive from 1.0.101 to 1.0.104
2020-02-12 20:23:37 +01:00
dependabot-preview[bot]
9da3f45cd2
Bump toml from 0.5.3 to 0.5.6
Bumps [toml](https://github.com/alexcrichton/toml-rs) from 0.5.3 to 0.5.6.
- [Release notes](https://github.com/alexcrichton/toml-rs/releases)
- [Commits](https://github.com/alexcrichton/toml-rs/compare/0.5.3...0.5.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-12 19:23:31 +00:00
dependabot-preview[bot]
973593d53d
Bump serde_derive from 1.0.101 to 1.0.104
Bumps [serde_derive](https://github.com/serde-rs/serde) from 1.0.101 to 1.0.104.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.104)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-12 19:23:20 +00:00
Valentin Brandl
65305e98f7
Merge pull request #78 from vbrandl/dependabot/cargo/proptest-0.9.5
Bump proptest from 0.9.4 to 0.9.5
2020-02-12 20:23:16 +01:00
Valentin Brandl
529efb4d38
Merge pull request #85 from vbrandl/dependabot/cargo/serde_json-1.0.47
Bump serde_json from 1.0.41 to 1.0.47
2020-02-12 20:21:55 +01:00
dependabot-preview[bot]
6397f72a3a Bump serde_json from 1.0.41 to 1.0.47
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.41 to 1.0.47.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.41...v1.0.47)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-10 04:19:37 +00:00
dependabot-preview[bot]
b84f1fbc97
Bump proptest from 0.9.4 to 0.9.5
Bumps [proptest](https://github.com/altsysrq/proptest) from 0.9.4 to 0.9.5.
- [Release notes](https://github.com/altsysrq/proptest/releases)
- [Changelog](https://github.com/AltSysrq/proptest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/altsysrq/proptest/compare/0.9.4...0.9.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-20 04:20:34 +00:00
Valentin Brandl
e319366bd5
Merge pull request #59 from vbrandl/dependabot/cargo/reqwest-0.9.22
Bump reqwest from 0.9.20 to 0.9.22
2019-10-14 15:33:14 +02:00
Valentin Brandl
f221638c84
Merge pull request #56 from vbrandl/dependabot/cargo/hex-0.4.0
Bump hex from 0.3.2 to 0.4.0
2019-10-14 15:31:59 +02:00
dependabot-preview[bot]
7e9676f966
Bump reqwest from 0.9.20 to 0.9.22
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.9.20 to 0.9.22.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/v0.9.22/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.9.20...v0.9.22)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-14 13:31:54 +00:00
Valentin Brandl
d2650cf561
Merge pull request #58 from vbrandl/dependabot/cargo/serde_json-1.0.41
Bump serde_json from 1.0.40 to 1.0.41
2019-10-14 15:29:59 +02:00
dependabot-preview[bot]
a008f8d73d
Bump serde_json from 1.0.40 to 1.0.41
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.40 to 1.0.41.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.40...v1.0.41)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-14 13:29:24 +00:00
Valentin Brandl
c6427f90ec
Merge pull request #55 from vbrandl/dependabot/cargo/serde-1.0.101
Bump serde from 1.0.100 to 1.0.101
2019-10-14 15:27:26 +02:00
dependabot-preview[bot]
2b0c71d384
Bump hex from 0.3.2 to 0.4.0
Bumps [hex](https://github.com/KokaKiwi/rust-hex) from 0.3.2 to 0.4.0.
- [Release notes](https://github.com/KokaKiwi/rust-hex/releases)
- [Commits](https://github.com/KokaKiwi/rust-hex/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-14 13:25:48 +00:00
dependabot-preview[bot]
9dcd50a92e
Bump serde from 1.0.100 to 1.0.101
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.100 to 1.0.101.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-14 13:25:34 +00:00
Valentin Brandl
c8de45c8b3
Merge pull request #60 from vbrandl/dependabot/cargo/failure-0.1.6
Bump failure from 0.1.5 to 0.1.6
2019-10-14 15:23:53 +02:00
dependabot-preview[bot]
6b7b67aa35
Bump failure from 0.1.5 to 0.1.6
Bumps [failure](https://github.com/rust-lang-nursery/failure) from 0.1.5 to 0.1.6.
- [Release notes](https://github.com/rust-lang-nursery/failure/releases)
- [Changelog](https://github.com/rust-lang-nursery/failure/blob/master/RELEASES.md)
- [Commits](https://github.com/rust-lang-nursery/failure/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-14 13:22:38 +00:00
Valentin Brandl
c758e03109
Merge pull request #54 from vbrandl/dependabot/cargo/serde_derive-1.0.101
Bump serde_derive from 1.0.100 to 1.0.101
2019-10-14 15:21:36 +02:00
Valentin Brandl
3cfeeef63c
Merge pull request #53 from vbrandl/dependabot/cargo/hyper-0.12.35
Bump hyper from 0.12.34 to 0.12.35
2019-10-14 15:20:43 +02:00
dependabot-preview[bot]
a9f4294bfc
Bump serde_derive from 1.0.100 to 1.0.101
Bumps [serde_derive](https://github.com/serde-rs/serde) from 1.0.100 to 1.0.101.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-17 04:23:14 +00:00
dependabot-preview[bot]
11a0306e45
Bump hyper from 0.12.34 to 0.12.35
Bumps [hyper](https://github.com/hyperium/hyper) from 0.12.34 to 0.12.35.
- [Release notes](https://github.com/hyperium/hyper/releases)
- [Changelog](https://github.com/hyperium/hyper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 04:25:16 +00:00
Valentin Brandl
2560dbc723
Merge pull request #49 from vbrandl/dependabot/cargo/hyper-0.12.34
Bump hyper from 0.12.33 to 0.12.34
2019-09-09 18:22:26 +02:00
dependabot-preview[bot]
8d5fe29da3
Bump hyper from 0.12.33 to 0.12.34
Bumps [hyper](https://github.com/hyperium/hyper) from 0.12.33 to 0.12.34.
- [Release notes](https://github.com/hyperium/hyper/releases)
- [Changelog](https://github.com/hyperium/hyper/blob/v0.12.34/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper/compare/v0.12.33...v0.12.34)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-09 16:18:58 +00:00
Valentin Brandl
21e11e4a86
Merge pull request #51 from vbrandl/dependabot/cargo/serde_derive-1.0.100
Bump serde_derive from 1.0.99 to 1.0.100
2019-09-09 18:18:26 +02:00
dependabot-preview[bot]
e01d75787a
Bump serde_derive from 1.0.99 to 1.0.100
Bumps [serde_derive](https://github.com/serde-rs/serde) from 1.0.99 to 1.0.100.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-09 16:17:40 +00:00
Valentin Brandl
c4a9069592
Merge pull request #50 from vbrandl/dependabot/cargo/futures-0.1.29
Bump futures from 0.1.28 to 0.1.29
2019-09-09 18:17:28 +02:00
Valentin Brandl
a6f8544837
Merge pull request #52 from vbrandl/dependabot/cargo/serde-1.0.100
Bump serde from 1.0.99 to 1.0.100
2019-09-09 18:16:13 +02:00
dependabot-preview[bot]
fee4882fea
Bump serde from 1.0.99 to 1.0.100
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.99 to 1.0.100.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-09 04:22:52 +00:00
dependabot-preview[bot]
8f3dd17cb5
Bump futures from 0.1.28 to 0.1.29
Bumps [futures](https://github.com/rust-lang-nursery/futures-rs) from 0.1.28 to 0.1.29.
- [Release notes](https://github.com/rust-lang-nursery/futures-rs/releases)
- [Changelog](https://github.com/rust-lang-nursery/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang-nursery/futures-rs/compare/0.1.28...0.1.29)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-06 04:23:01 +00:00
Valentin Brandl
5ed74531dc
Merge pull request #47 from vbrandl/dependabot/cargo/reqwest-0.9.20
Bump reqwest from 0.9.19 to 0.9.20
2019-08-28 20:19:33 +02:00
dependabot-preview[bot]
06b1fcdb85
Bump reqwest from 0.9.19 to 0.9.20
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.9.19 to 0.9.20.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/v0.9.20/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.9.19...v0.9.20)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-28 07:26:36 +00:00
Valentin Brandl
6a16f37e71
Merge pull request #45 from vbrandl/dependabot/cargo/serde-1.0.99
Bump serde from 1.0.98 to 1.0.99
2019-08-28 09:24:41 +02:00
dependabot-preview[bot]
970e4da459
Bump serde from 1.0.98 to 1.0.99
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.98 to 1.0.99.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-28 07:24:27 +00:00
Valentin Brandl
347fe90afd
Merge pull request #46 from vbrandl/dependabot/cargo/serde_derive-1.0.99
Bump serde_derive from 1.0.98 to 1.0.99
2019-08-28 09:20:00 +02:00
Valentin Brandl
6ea6ffc76a
Merge pull request #44 from vbrandl/dependabot/cargo/pretty_env_logger-0.3.1
Bump pretty_env_logger from 0.3.0 to 0.3.1
2019-08-28 09:19:14 +02:00
dependabot-preview[bot]
73bf955d68
Bump serde_derive from 1.0.98 to 1.0.99
Bumps [serde_derive](https://github.com/serde-rs/serde) from 1.0.98 to 1.0.99.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-19 04:39:29 +00:00
dependabot-preview[bot]
a6e786a3fb
Bump pretty_env_logger from 0.3.0 to 0.3.1
Bumps [pretty_env_logger](https://github.com/seanmonstar/pretty-env-logger) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/seanmonstar/pretty-env-logger/releases)
- [Commits](https://github.com/seanmonstar/pretty-env-logger/compare/v0.3.0...v0.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-19 04:37:58 +00:00
Valentin Brandl
e9e65b4f7a
Merge pull request #43 from vbrandl/dependabot/cargo/toml-0.5.3
Bump toml from 0.5.1 to 0.5.3
2019-08-14 19:12:39 +02:00
dependabot-preview[bot]
9dee0ba3e0
Bump toml from 0.5.1 to 0.5.3
Bumps [toml](https://github.com/alexcrichton/toml-rs) from 0.5.1 to 0.5.3.
- [Release notes](https://github.com/alexcrichton/toml-rs/releases)
- [Commits](https://github.com/alexcrichton/toml-rs/compare/0.5.1...0.5.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-14 04:28:07 +00:00
Valentin Brandl
c79472e828
Merge pull request #40 from vbrandl/dependabot/cargo/serde_derive-1.0.98
Bump serde_derive from 1.0.97 to 1.0.98
2019-08-02 15:03:54 +02:00
dependabot-preview[bot]
21b9df70a3
Bump serde_derive from 1.0.97 to 1.0.98
Bumps [serde_derive](https://github.com/serde-rs/serde) from 1.0.97 to 1.0.98.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-02 13:03:28 +00:00
Valentin Brandl
1ffc650e1b
Merge pull request #41 from vbrandl/dependabot/cargo/serde-1.0.98
Bump serde from 1.0.97 to 1.0.98
2019-08-02 15:01:55 +02:00
Valentin Brandl
30b548c06e
Merge pull request #42 from vbrandl/dependabot/cargo/log-0.4.8
Bump log from 0.4.7 to 0.4.8
2019-08-02 15:01:48 +02:00
dependabot-preview[bot]
ef0179bdbe
Bump log from 0.4.7 to 0.4.8
Bumps [log](https://github.com/rust-lang/log) from 0.4.7 to 0.4.8.
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang-nursery/log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-29 04:32:49 +00:00
dependabot-preview[bot]
fc4d9a6286
Bump serde from 1.0.97 to 1.0.98
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.97 to 1.0.98.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-29 04:32:18 +00:00
Valentin Brandl
379e329a0b
Merge pull request #39 from vbrandl/dependabot/cargo/reqwest-0.9.19
Bump reqwest from 0.9.18 to 0.9.19
2019-07-22 21:40:21 +02:00
dependabot-preview[bot]
5edf89e6d2
Bump reqwest from 0.9.18 to 0.9.19
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.9.18 to 0.9.19.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.9.18...v0.9.19)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-22 04:30:45 +00:00
Valentin Brandl
19b777ac70
Merge pull request #36 from vbrandl/dependabot/cargo/serde-1.0.97
Bump serde from 1.0.94 to 1.0.97
2019-07-19 16:55:26 +02:00
dependabot-preview[bot]
02e81c9308
Bump serde from 1.0.94 to 1.0.97
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.94 to 1.0.97.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.97)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-19 14:55:09 +00:00
Valentin Brandl
ec56de5dd7
Merge pull request #33 from vbrandl/dependabot/cargo/hyper-0.12.33
Bump hyper from 0.12.31 to 0.12.33
2019-07-19 16:54:15 +02:00
Valentin Brandl
3b19dab99a
Merge pull request #37 from vbrandl/dependabot/cargo/serde_derive-1.0.97
Bump serde_derive from 1.0.94 to 1.0.97
2019-07-19 16:53:35 +02:00
dependabot-preview[bot]
4cbe3cf0fa
Bump serde_derive from 1.0.94 to 1.0.97
Bumps [serde_derive](https://github.com/serde-rs/serde) from 1.0.94 to 1.0.97.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.97)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-18 15:14:23 +00:00
dependabot-preview[bot]
7b13da59bb
Bump hyper from 0.12.31 to 0.12.33
Bumps [hyper](https://github.com/hyperium/hyper) from 0.12.31 to 0.12.33.
- [Release notes](https://github.com/hyperium/hyper/releases)
- [Changelog](https://github.com/hyperium/hyper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper/compare/v0.12.31...v0.12.33)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-16 04:25:28 +00:00
Valentin Brandl
0c6d61ee22
Merge pull request #32 from vbrandl/dependabot/cargo/log-0.4.7
Bump log from 0.4.6 to 0.4.7
2019-07-14 14:26:20 +02:00
dependabot-preview[bot]
c341578749
Bump log from 0.4.6 to 0.4.7
Bumps [log](https://github.com/rust-lang/log) from 0.4.6 to 0.4.7.
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang-nursery/log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/compare/0.4.6...0.4.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-11 06:22:31 +00:00
Valentin Brandl
357012e0d4
Merge pull request #30 from vbrandl/dependabot/cargo/smallvec-0.6.10
[Security] Bump smallvec from 0.6.9 to 0.6.10
2019-07-05 12:44:54 +02:00
dependabot-preview[bot]
12140e8767
[Security] Bump smallvec from 0.6.9 to 0.6.10
Bumps [smallvec](https://github.com/servo/rust-smallvec) from 0.6.9 to 0.6.10. **This update includes security fixes.**
- [Release notes](https://github.com/servo/rust-smallvec/releases)
- [Commits](https://github.com/servo/rust-smallvec/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-02 22:39:19 +00:00
Valentin Brandl
c4c2107b03
Merge pull request #29 from vbrandl/dependabot/cargo/serde_json-1.0.40
Bump serde_json from 1.0.39 to 1.0.40
2019-07-01 18:24:20 +02:00
dependabot-preview[bot]
05d8bdafd0
Bump serde_json from 1.0.39 to 1.0.40
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.39 to 1.0.40.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.39...v1.0.40)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-01 04:32:42 +00:00
Valentin Brandl
c4cb843dab
Merge pull request #26 from vbrandl/dependabot/cargo/serde_derive-1.0.94
Bump serde_derive from 1.0.93 to 1.0.94
2019-06-28 14:17:55 +02:00
dependabot-preview[bot]
78ebb05b34
Bump serde_derive from 1.0.93 to 1.0.94
Bumps [serde_derive](https://github.com/serde-rs/serde) from 1.0.93 to 1.0.94.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-28 12:17:46 +00:00
Valentin Brandl
3babc1fc9e
Merge pull request #27 from vbrandl/dependabot/cargo/serde-1.0.94
Bump serde from 1.0.93 to 1.0.94
2019-06-28 14:16:17 +02:00
dependabot-preview[bot]
f4c509cdaf
Bump serde from 1.0.93 to 1.0.94
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.93 to 1.0.94.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-28 04:26:31 +00:00
dependabot-preview[bot]
f27cfa4544
Merge pull request #25 from vbrandl/dependabot/cargo/futures-0.1.28 2019-06-27 07:20:16 +00:00
dependabot-preview[bot]
40f3b8fbd0
Bump futures from 0.1.27 to 0.1.28
Bumps [futures](https://github.com/rust-lang-nursery/futures-rs) from 0.1.27 to 0.1.28.
- [Release notes](https://github.com/rust-lang-nursery/futures-rs/releases)
- [Changelog](https://github.com/rust-lang-nursery/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang-nursery/futures-rs/compare/0.1.27...0.1.28)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-27 04:26:02 +00:00
Valentin Brandl
144eb24edd
Merge pull request #22 from vbrandl/dependabot/cargo/serde-1.0.93
Bump serde from 1.0.92 to 1.0.93
2019-06-26 18:18:54 +02:00
dependabot-preview[bot]
d666548214
Bump serde from 1.0.92 to 1.0.93
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.92 to 1.0.93.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-26 16:15:50 +00:00
Valentin Brandl
58078eee81
Merge pull request #24 from vbrandl/dependabot/cargo/hyper-0.12.31
Bump hyper from 0.12.30 to 0.12.31
2019-06-26 18:14:50 +02:00
Valentin Brandl
b1ef857d76
Merge pull request #23 from vbrandl/dependabot/cargo/serde_derive-1.0.93
Bump serde_derive from 1.0.92 to 1.0.93
2019-06-26 18:14:28 +02:00
dependabot-preview[bot]
3c5d1cdcd3
Bump hyper from 0.12.30 to 0.12.31
Bumps [hyper](https://github.com/hyperium/hyper) from 0.12.30 to 0.12.31.
- [Release notes](https://github.com/hyperium/hyper/releases)
- [Changelog](https://github.com/hyperium/hyper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper/compare/v0.12.30...v0.12.31)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-26 04:24:39 +00:00
dependabot-preview[bot]
e6cc6440a9
Bump serde_derive from 1.0.92 to 1.0.93
Bumps [serde_derive](https://github.com/serde-rs/serde) from 1.0.92 to 1.0.93.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-24 04:30:45 +00:00
Valentin Brandl
fb648901c4
Merge pull request #18 from vbrandl/dependabot/cargo/reqwest-0.9.18
Bump reqwest from 0.9.17 to 0.9.18
2019-06-23 18:28:50 +02:00
Valentin Brandl
b8468b56c6
Merge pull request #20 from vbrandl/dependabot/cargo/hyper-0.12.30
Bump hyper from 0.12.29 to 0.12.30
2019-06-22 14:37:51 +02:00
dependabot-preview[bot]
93578c917c
Bump reqwest from 0.9.17 to 0.9.18
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.9.17 to 0.9.18.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.9.17...v0.9.18)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-22 12:14:25 +00:00
Valentin Brandl
74a6121c65
Merge pull request #16 from vbrandl/dependabot/cargo/serde-1.0.92
Bump serde from 1.0.91 to 1.0.92
2019-06-22 14:12:57 +02:00
dependabot-preview[bot]
9a4a484add
Bump serde from 1.0.91 to 1.0.92
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.91 to 1.0.92.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
2019-06-22 11:55:21 +00:00
Valentin Brandl
75bd96d470
Merge pull request #17 from vbrandl/dependabot/cargo/serde_derive-1.0.92
Bump serde_derive from 1.0.91 to 1.0.92
2019-06-22 13:53:53 +02:00
Valentin Brandl
a4668072ac
Merge pull request #19 from vbrandl/dependabot/cargo/proptest-0.9.4
Bump proptest from 0.9.3 to 0.9.4
2019-06-22 13:51:43 +02:00
dependabot-preview[bot]
48d4e6b41a
Bump hyper from 0.12.29 to 0.12.30
Bumps [hyper](https://github.com/hyperium/hyper) from 0.12.29 to 0.12.30.
- [Release notes](https://github.com/hyperium/hyper/releases)
- [Changelog](https://github.com/hyperium/hyper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper/compare/v0.12.29...v0.12.30)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-18 05:15:59 +00:00
dependabot-preview[bot]
9835de15b1
Bump proptest from 0.9.3 to 0.9.4
Bumps [proptest](https://github.com/altsysrq/proptest) from 0.9.3 to 0.9.4.
- [Release notes](https://github.com/altsysrq/proptest/releases)
- [Changelog](https://github.com/AltSysrq/proptest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/altsysrq/proptest/compare/0.9.3...0.9.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-10 05:13:28 +00:00
dependabot-preview[bot]
9f619bb1a7
Bump serde_derive from 1.0.91 to 1.0.92
Bumps [serde_derive](https://github.com/serde-rs/serde) from 1.0.91 to 1.0.92.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
2019-06-03 05:25:28 +00:00
Valentin Brandl
445ce3d0cd
Remove test file 2019-05-26 01:28:20 +02:00
Valentin Brandl
a0d59b42a9
Update dependencies 2019-05-26 01:27:39 +02:00
Valentin Brandl
2f7e28e531
Merge branch 'master' into develop 2019-05-26 00:32:39 +02:00
Valentin Brandl
488018e35e
Merge pull request #5 from vbrandl/dependabot/cargo/hyper-0.12.9
Bump hyper from 0.11.27 to 0.12.9
2019-05-26 00:29:46 +02:00
Valentin Brandl
d1558b2590
Merge pull request #9 from vbrandl/dependabot/cargo/pretty_env_logger-0.3.0
Bump pretty_env_logger from 0.2.3 to 0.3.0
2019-05-26 00:29:26 +02:00
Valentin Brandl
4f0af6e1f1
Merge pull request #7 from vbrandl/dependabot/cargo/toml-0.5.1
Bump toml from 0.4.6 to 0.5.1
2019-05-26 00:28:48 +02:00
dependabot-preview[bot]
1fb4406138
Bump pretty_env_logger from 0.2.3 to 0.3.0
Bumps [pretty_env_logger](https://github.com/seanmonstar/pretty-env-logger) from 0.2.3 to 0.3.0.
- [Release notes](https://github.com/seanmonstar/pretty-env-logger/releases)
- [Commits](https://github.com/seanmonstar/pretty-env-logger/compare/v0.2.3...v0.3.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-25 22:28:37 +00:00
Valentin Brandl
d5f5dd39b3
Merge pull request #10 from vbrandl/dependabot/cargo/serde_derive-1.0.91
Bump serde_derive from 1.0.69 to 1.0.91
2019-05-26 00:27:59 +02:00
dependabot-preview[bot]
7ff19e8add
Bump toml from 0.4.6 to 0.5.1
Bumps [toml](https://github.com/alexcrichton/toml-rs) from 0.4.6 to 0.5.1.
- [Release notes](https://github.com/alexcrichton/toml-rs/releases)
- [Commits](https://github.com/alexcrichton/toml-rs/compare/0.4.6...0.5.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-25 22:27:36 +00:00
dependabot-preview[bot]
bef32c0d91
Bump serde_derive from 1.0.69 to 1.0.91
Bumps [serde_derive](https://github.com/serde-rs/serde) from 1.0.69 to 1.0.91.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.69...v1.0.91)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-25 22:27:31 +00:00
dependabot-preview[bot]
bed16f2e35
Bump hyper from 0.11.27 to 0.12.9
Bumps [hyper](https://github.com/hyperium/hyper) from 0.11.27 to 0.12.9.
- [Release notes](https://github.com/hyperium/hyper/releases)
- [Changelog](https://github.com/hyperium/hyper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper/compare/v0.11.27...v0.12.9)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-25 22:27:18 +00:00
Valentin Brandl
933e6aa23b
Merge pull request #8 from vbrandl/dependabot/cargo/clap-2.33.0
Bump clap from 2.32.0 to 2.33.0
2019-05-26 00:26:35 +02:00
Valentin Brandl
f591e8014b
Merge pull request #2 from vbrandl/dependabot/cargo/serde-1.0.91
Bump serde from 1.0.69 to 1.0.91
2019-05-26 00:26:08 +02:00
Valentin Brandl
0010349003
Merge pull request #6 from vbrandl/dependabot/cargo/proptest-0.8.7
Bump proptest from 0.8.3 to 0.8.7
2019-05-26 00:25:49 +02:00
dependabot-preview[bot]
70b3aeec37
Bump serde from 1.0.69 to 1.0.91
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.69 to 1.0.91.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.69...v1.0.91)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-25 21:26:13 +00:00
dependabot-preview[bot]
3e25b49286
Bump clap from 2.32.0 to 2.33.0
Bumps [clap](https://github.com/clap-rs/clap) from 2.32.0 to 2.33.0.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-25 21:26:12 +00:00
dependabot-preview[bot]
e135bf9386
Bump proptest from 0.8.3 to 0.8.7
Bumps [proptest](https://github.com/altsysrq/proptest) from 0.8.3 to 0.8.7.
- [Release notes](https://github.com/altsysrq/proptest/releases)
- [Changelog](https://github.com/AltSysrq/proptest/blob/0.8.7/CHANGELOG.md)
- [Commits](https://github.com/altsysrq/proptest/compare/0.8.3...0.8.7)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-25 21:24:56 +00:00
Valentin Brandl
81c3e7daa5
Merge pull request #3 from vbrandl/dependabot/cargo/log-0.4.6
Bump log from 0.4.3 to 0.4.6
2019-05-25 23:24:51 +02:00
Valentin Brandl
8445dbc5ac
Merge pull request #1 from vbrandl/dependabot/cargo/serde_json-1.0.27
Bump serde_json from 1.0.22 to 1.0.27
2019-05-25 23:23:19 +02:00
dependabot[bot]
abf04e9b4d
Bump log from 0.4.3 to 0.4.6
Bumps [log](https://github.com/rust-lang/log) from 0.4.3 to 0.4.6.
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang-nursery/log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/compare/env_logger-0.4.3...0.4.6)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-23 11:19:54 +00:00
dependabot[bot]
6b61addfc7
Bump serde_json from 1.0.22 to 1.0.27
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.22 to 1.0.27.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.22...v1.0.27)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-23 11:19:13 +00:00
Valentin Brandl
69d7b47c83
Merge tag 'v0.1.3' into develop
v0.1.3
2018-07-15 21:38:46 +02:00
Valentin Brandl
8dd1a1b0fa
Merge branch 'release/0.1.3' 2018-07-15 21:38:41 +02:00
Valentin Brandl
d87cbf9d0f
Bump version numbers 2018-07-15 21:38:37 +02:00
Valentin Brandl
3af4ccf2d2
Fix before_deploy script 2018-07-15 21:38:11 +02:00
Valentin Brandl
d50bfb83dc
Merge tag 'v0.1.2' into develop
v0.1.2
2018-07-15 21:26:46 +02:00
12 changed files with 1919 additions and 3181 deletions

3065
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -7,6 +7,19 @@
This is an attempt to implement an API to create, update or delete DNS records This is an attempt to implement an API to create, update or delete DNS records
on a BIND9 DNS server. on a BIND9 DNS server.
## Building
To compile the code, you first need to [install Rust](https://rustup.rs/). Then
you can run
```
cargo build --release
```
in the project root. The server and client binary will be located in
`./target/release/bind9-api` and `./target/release/bind9-api-client`
respectively.
## Server ## Server
The server will wait for incoming requests and uses the `nsupdate` command to The server will wait for incoming requests and uses the `nsupdate` command to

View File

@ -3,13 +3,13 @@
set -ex set -ex
main() { main() {
local src=$(pwd) \ local src=$(pwd)
stage=$src/deploy local stage=$src/deploy
mkdir -p $deploy mkdir -p $stage
cp target/x86_64-unknown-linux-musl/release/bind9-api $stage/bind9-api-${TRAVIS-TAG:1}-x86_64-musl cp target/x86_64-unknown-linux-musl/release/bind9-api $stage/bind9-api-${TRAVIS_TAG:1}-x86_64-musl
cp target/x86_64-unknown-linux-musl/release/bind9-api-client $stage/bind9-api-client-${TRAVIS-TAG:1}-x86_64-musl cp target/x86_64-unknown-linux-musl/release/bind9-api-client $stage/bind9-api-client-${TRAVIS_TAG:1}-x86_64-musl
} }
main main

194
client/Cargo.lock generated
View File

@ -1,194 +0,0 @@
[[package]]
name = "ansi_term"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"winapi 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "atty"
version = "0.2.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"libc 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)",
"termion 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
"winapi 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "bind9-api-client"
version = "0.1.0"
dependencies = [
"clap 2.32.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.69 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_derive 1.0.69 (registry+https://github.com/rust-lang/crates.io-index)",
"toml 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "bitflags"
version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "clap"
version = "2.32.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
"atty 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)",
"bitflags 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
"strsim 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"textwrap 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
"unicode-width 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
"vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "libc"
version = "0.2.42"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "proc-macro2"
version = "0.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "quote"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"proc-macro2 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "redox_syscall"
version = "0.1.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "redox_termios"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"redox_syscall 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "serde"
version = "1.0.69"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "serde_derive"
version = "1.0.69"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"proc-macro2 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
"quote 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)",
"syn 0.14.4 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "strsim"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "syn"
version = "0.14.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"proc-macro2 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
"quote 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)",
"unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "termion"
version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"libc 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)",
"redox_syscall 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)",
"redox_termios 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "textwrap"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"unicode-width 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "toml"
version = "0.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"serde 1.0.69 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "unicode-width"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "unicode-xid"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "vec_map"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "winapi"
version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "winapi-i686-pc-windows-gnu"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "winapi-x86_64-pc-windows-gnu"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
[metadata]
"checksum ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b"
"checksum atty 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)" = "2fc4a1aa4c24c0718a250f0681885c1af91419d242f29eb8f2ab28502d80dbd1"
"checksum bitflags 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "d0c54bb8f454c567f21197eefcdbf5679d0bd99f2ddbe52e84c77061952e6789"
"checksum clap 2.32.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b957d88f4b6a63b9d70d5f454ac8011819c6efa7727858f458ab71c756ce2d3e"
"checksum libc 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)" = "b685088df2b950fccadf07a7187c8ef846a959c142338a48f9dc0b94517eb5f1"
"checksum proc-macro2 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "effdb53b25cdad54f8f48843d67398f7ef2e14f12c1b4cb4effc549a6462a4d6"
"checksum quote 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)" = "e44651a0dc4cdd99f71c83b561e221f714912d11af1a4dff0631f923d53af035"
"checksum redox_syscall 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)" = "c214e91d3ecf43e9a4e41e578973adeb14b474f2bee858742d127af75a0112b1"
"checksum redox_termios 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7e891cfe48e9100a70a3b6eb652fef28920c117d366339687bd5576160db0f76"
"checksum serde 1.0.69 (registry+https://github.com/rust-lang/crates.io-index)" = "210e5a3b159c566d7527e9b22e44be73f2e0fcc330bb78fef4dbccb56d2e74c8"
"checksum serde_derive 1.0.69 (registry+https://github.com/rust-lang/crates.io-index)" = "dd724d68017ae3a7e63600ee4b2fdb3cad2158ffd1821d44aff4580f63e2b593"
"checksum strsim 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bb4f380125926a99e52bc279241539c018323fab05ad6368b56f93d9369ff550"
"checksum syn 0.14.4 (registry+https://github.com/rust-lang/crates.io-index)" = "2beff8ebc3658f07512a413866875adddd20f4fd47b2a4e6c9da65cd281baaea"
"checksum termion 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "689a3bdfaab439fd92bc87df5c4c78417d3cbe537487274e9b0b2dce76e92096"
"checksum textwrap 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)" = "307686869c93e71f94da64286f9a9524c0f308a9e1c87a583de8e9c9039ad3f6"
"checksum toml 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "a0263c6c02c4db6c8f7681f9fd35e90de799ebd4cfdeab77a38f4ff6b3d8c0d9"
"checksum unicode-width 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "882386231c45df4700b275c7ff55b6f3698780a650026380e72dabe76fa46526"
"checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc"
"checksum vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "05c78687fb1a80548ae3250346c3db86a80a7cdd77bda190189f2d0a0987c81a"
"checksum winapi 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "773ef9dcc5f24b7d850d0ff101e542ff24c3b090a9768e03ff889fdef41f00fd"
"checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
"checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"

View File

@ -1,21 +1,21 @@
[package] [package]
name = "bind9-api-client" name = "bind9-api-client"
version = "0.1.2" version = "0.1.3"
authors = ["Valentin Brandl <vbrandl@riseup.net>"] authors = ["Valentin Brandl <vbrandl@riseup.net>"]
description = "Client for the BIND9 API" description = "Client for the BIND9 API"
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
[dependencies] [dependencies]
clap = "2.32.0" clap = "2.33.0"
crypto = { path = "../crypto" } crypto = { path = "../crypto" }
data = { path = "../data" } data = { path = "../data" }
failure = "0.1.1" failure = "0.1.7"
hyper = "0.11" hyper = "0.12.35"
log = "0.4.3" log = "0.4.8"
openssl-probe = "0.1.2" openssl-probe = "0.1.2"
pretty_env_logger = "0.2.3" pretty_env_logger = "0.4.0"
reqwest = "0.8.6" reqwest = "0.9.24"
serde = "1.0.69" serde = "1.0.104"
serde_derive = "1.0.69" serde_derive = "1.0.104"
serde_json = "1.0.22" serde_json = "1.0.50"
toml = "0.4.6" toml = "0.5.6"

View File

@ -42,7 +42,6 @@ extern crate clap;
extern crate crypto; extern crate crypto;
extern crate data; extern crate data;
extern crate failure; extern crate failure;
#[macro_use]
extern crate hyper; extern crate hyper;
#[macro_use] #[macro_use]
extern crate log; extern crate log;
@ -65,8 +64,6 @@ use std::borrow::Cow;
type Result<T> = std::result::Result<T, Error>; type Result<T> = std::result::Result<T, Error>;
header! { (XApiToken, data::TOKEN_HEADER) => [String] }
#[derive(Eq, PartialEq, Clone, Copy)] #[derive(Eq, PartialEq, Clone, Copy)]
enum Method { enum Method {
POST, POST,
@ -109,16 +106,17 @@ fn call_api<D: serde::Serialize>(
let data_s = serde_json::to_string(&data)?; let data_s = serde_json::to_string(&data)?;
info!("body: {}", data_s); info!("body: {}", data_s);
let signature = crypto::sign(config.secret.as_bytes(), data_s.as_bytes()); let signature = crypto::sign(config.secret.as_bytes(), data_s.as_bytes());
let signature = crypto::bytes_to_hex_str(&signature)?; let signature = crypto::bytes_to_hex_str(&signature);
let client = reqwest::Client::new(); let client = reqwest::Client::new();
let url = format!("{}/record", config.host); let url = format!("{}/record", config.host);
Ok(if method == Method::POST { Ok(if method == Method::POST {
client.post(&url) client.post(&url)
} else { } else {
client.delete(&url) client.delete(&url)
}.header(XApiToken(signature)) }
.json(&data) .header("X-Api-Token", signature)
.send()?) .json(&data)
.send()?)
} }
fn main() -> Result<()> { fn main() -> Result<()> {

View File

@ -5,9 +5,9 @@ authors = ["Valentin Brandl <vbrandl@riseup.net>"]
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
[dependencies] [dependencies]
failure = "0.1.1" failure = "0.1.7"
hex = "0.3.2" hex = "0.4.0"
ring = "0.12.1" ring = "0.13.5"
[dev-dependencies] [dev-dependencies]
proptest = "0.8.1" proptest = "0.9.5"

View File

@ -55,10 +55,8 @@ use ring::{digest, hmac};
type Result<T> = std::result::Result<T, Error>; type Result<T> = std::result::Result<T, Error>;
/// Converts a byte slice to a lowercase hex string. /// Converts a byte slice to a lowercase hex string.
pub fn bytes_to_hex_str(bytes: &[u8]) -> Result<String> { pub fn bytes_to_hex_str(bytes: &[u8]) -> String {
let mut output = String::new(); bytes.encode_hex::<String>()
bytes.write_hex(&mut output)?;
Ok(output)
} }
/// Converts a hey string to a vec of bytes. /// Converts a hey string to a vec of bytes.

View File

@ -5,6 +5,6 @@ authors = ["Valentin Brandl <vbrandl@riseup.net>"]
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
[dependencies] [dependencies]
failure = "0.1.1" failure = "0.1.7"
serde = "1.0.69" serde = "1.0.104"
serde_derive = "1.0.69" serde_derive = "1.0.104"

1741
server/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,18 +1,18 @@
[package] [package]
name = "bind9-api" name = "bind9-api"
version = "0.1.2" version = "0.1.3"
authors = ["Valentin Brandl <vbrandl@riseup.net>"] authors = ["Valentin Brandl <vbrandl@riseup.net>"]
description = "Web API to create, update and remove DNS entries in bind9" description = "Web API to create, update and remove DNS entries in bind9"
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
[dependencies] [dependencies]
actix-web = "0.6.14" actix-web = "0.7.19"
clap = "2.31.2" clap = "2.33.0"
crypto = { path = "../crypto" } crypto = { path = "../crypto" }
data = { path = "../data" } data = { path = "../data" }
failure = "0.1.1" failure = "0.1.7"
futures = "0.1.21" futures = "0.1.29"
log = "0.4.3" log = "0.4.8"
pretty_env_logger = "0.2.3" pretty_env_logger = "0.4.0"
serde = "1.0.69" serde = "1.0.104"
serde_json = "1.0.22" serde_json = "1.0.50"

View File

@ -104,7 +104,7 @@ pub struct Validated<T>(T);
impl<T: 'static + ::serde::de::DeserializeOwned> FromRequest<Arc<Config>> for Validated<T> { impl<T: 'static + ::serde::de::DeserializeOwned> FromRequest<Arc<Config>> for Validated<T> {
type Config = (); type Config = ();
type Result = Box<Future<Item = Self, Error = Error>>; type Result = Box<dyn Future<Item = Self, Error = Error>>;
fn from_request(req: &HttpRequest<Arc<Config>>, _: &Self::Config) -> Self::Result { fn from_request(req: &HttpRequest<Arc<Config>>, _: &Self::Config) -> Self::Result {
let state = req.state().clone(); let state = req.state().clone();
@ -134,7 +134,8 @@ impl<T> Deref for Validated<T> {
} }
fn extract_signature<S>(req: &HttpRequest<S>) -> Result<Vec<u8>> { fn extract_signature<S>(req: &HttpRequest<S>) -> Result<Vec<u8>> {
Ok(req.headers() Ok(req
.headers()
.get(::data::TOKEN_HEADER) .get(::data::TOKEN_HEADER)
.as_ref() .as_ref()
.ok_or_else(|| ErrorUnauthorized(ParseError::Header))? .ok_or_else(|| ErrorUnauthorized(ParseError::Header))?