Compare commits

..

92 Commits

Author SHA1 Message Date
99d386900e Bump version (v0.21.1)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2022-02-01 19:41:42 +01:00
c2fb288a07 Simplify static routes
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-01 19:41:17 +01:00
7a9def97cb Merge pull request #410 from vbrandl/dependabot/cargo/awc-3.0.0-beta.20
All checks were successful
continuous-integration/drone/push Build is passing
Bump awc from 3.0.0-beta.19 to 3.0.0-beta.20
2022-02-01 19:27:46 +01:00
815b213a2a Fix clippy lint
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-01 19:23:04 +01:00
1e44bc1a8f Add test if resources are available
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-01 19:16:47 +01:00
2507c24de7 Fix function signature
https://github.com/actix/actix-web/pull/2601
2022-02-01 19:16:26 +01:00
d78b349ca1 Update other actix dependencies 2022-02-01 19:16:11 +01:00
4b37c8073f Bump awc from 3.0.0-beta.19 to 3.0.0-beta.20
Bumps [awc](https://github.com/actix/actix-web) from 3.0.0-beta.19 to 3.0.0-beta.20.
- [Release notes](https://github.com/actix/actix-web/releases)
- [Changelog](https://github.com/actix/actix-web/blob/master/CHANGES.md)
- [Commits](https://github.com/actix/actix-web/compare/awc-v3.0.0-beta.19...awc-v3.0.0-beta.20)

---
updated-dependencies:
- dependency-name: awc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-01 04:14:37 +00:00
f2436efc85 Bump version (v0.21.0)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2022-01-30 00:23:41 +01:00
80a6cf0036 Merge pull request #409 from vbrandl/chore/dependencies
All checks were successful
continuous-integration/drone/push Build is passing
Update `serde_derive` and `tokio`
2022-01-30 00:17:56 +01:00
a0ec86e756 Update serde_derive and tokio
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-30 00:12:11 +01:00
d91e6bf580 Merge pull request #408 from vbrandl/feature/service-registration
All checks were successful
continuous-integration/drone/push Build is passing
Unify registration of service routes
2022-01-29 21:29:06 +01:00
f3e1d914c5 Register routes per service
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-29 21:19:38 +01:00
e282316769 Update transitive dependencies 2022-01-29 21:18:50 +01:00
9742900eb6 Update beta dependencies 2022-01-29 21:18:39 +01:00
45a582dcdd Merge pull request #407 from vbrandl/dependabot/cargo/vergen-6.0.2
Some checks failed
continuous-integration/drone/push Build is failing
Bump vergen from 6.0.1 to 6.0.2
2022-01-28 14:34:35 +01:00
b5a8500e0c Merge pull request #406 from vbrandl/dependabot/cargo/tokio-1.16.0
Bump tokio from 1.15.0 to 1.16.0
2022-01-28 14:34:26 +01:00
87f70285c6 Bump vergen from 6.0.1 to 6.0.2
Bumps [vergen](https://github.com/rustyhorde/vergen) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/rustyhorde/vergen/releases)
- [Commits](https://github.com/rustyhorde/vergen/compare/6.0.1...6.0.2)

---
updated-dependencies:
- dependency-name: vergen
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-28 04:17:09 +00:00
b76d50554c Bump tokio from 1.15.0 to 1.16.0
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.15.0...tokio-1.16.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-28 04:16:56 +00:00
d9bd880d51 Merge pull request #401 from vbrandl/dependabot/cargo/serde_json-1.0.78
Some checks failed
continuous-integration/drone/push Build is failing
Bump serde_json from 1.0.74 to 1.0.78
2022-01-26 19:11:49 +01:00
f13b823717 Merge pull request #405 from vbrandl/dependabot/cargo/serde-1.0.136
Bump serde from 1.0.133 to 1.0.136
2022-01-26 19:11:36 +01:00
2b69a6ee8c Merge pull request #403 from vbrandl/dependabot/cargo/vergen-6.0.1
Bump vergen from 6.0.0 to 6.0.1
2022-01-26 19:11:11 +01:00
e083a091c3 Merge pull request #404 from vbrandl/dependabot/cargo/tracing-subscriber-0.3.7
Bump tracing-subscriber from 0.3.5 to 0.3.7
2022-01-26 19:10:52 +01:00
ebd0c7df7d Merge pull request #400 from vbrandl/dependabot/cargo/tracing-bunyan-formatter-0.3.2
Bump tracing-bunyan-formatter from 0.3.1 to 0.3.2
2022-01-26 19:10:19 +01:00
be2825ad1f Bump serde from 1.0.133 to 1.0.136
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.133 to 1.0.136.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.136)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-26 04:15:49 +00:00
78a640f972 Bump tracing-subscriber from 0.3.5 to 0.3.7
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing) from 0.3.5 to 0.3.7.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.5...tracing-subscriber-0.3.7)

---
updated-dependencies:
- dependency-name: tracing-subscriber
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-26 04:15:42 +00:00
214e9b6a50 Bump vergen from 6.0.0 to 6.0.1
Bumps [vergen](https://github.com/rustyhorde/vergen) from 6.0.0 to 6.0.1.
- [Release notes](https://github.com/rustyhorde/vergen/releases)
- [Commits](https://github.com/rustyhorde/vergen/compare/6.0.0...6.0.1)

---
updated-dependencies:
- dependency-name: vergen
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-25 04:15:17 +00:00
878b5a5565 Bump serde_json from 1.0.74 to 1.0.78
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.74 to 1.0.78.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.74...v1.0.78)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-24 04:15:11 +00:00
ab18c03983 Bump tracing-bunyan-formatter from 0.3.1 to 0.3.2
Bumps [tracing-bunyan-formatter](https://github.com/LukeMathWalker/tracing-bunyan-formatter) from 0.3.1 to 0.3.2.
- [Release notes](https://github.com/LukeMathWalker/tracing-bunyan-formatter/releases)
- [Commits](https://github.com/LukeMathWalker/tracing-bunyan-formatter/compare/v0.3.1...v0.3.2)

---
updated-dependencies:
- dependency-name: tracing-bunyan-formatter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-17 04:17:42 +00:00
7a7a93ff75 Merge pull request #397 from vbrandl/dependabot/cargo/openssl-probe-0.1.5
All checks were successful
continuous-integration/drone/push Build is passing
Bump openssl-probe from 0.1.4 to 0.1.5
2022-01-13 21:01:26 +01:00
78fb8d9b83 Merge pull request #396 from vbrandl/dependabot/cargo/actix-rt-2.6.0
Bump actix-rt from 2.5.1 to 2.6.0
2022-01-13 21:00:42 +01:00
e8c9e4ca15 Bump openssl-probe from 0.1.4 to 0.1.5
Bumps [openssl-probe](https://github.com/alexcrichton/openssl-probe) from 0.1.4 to 0.1.5.
- [Release notes](https://github.com/alexcrichton/openssl-probe/releases)
- [Commits](https://github.com/alexcrichton/openssl-probe/compare/0.1.4...0.1.5)

---
updated-dependencies:
- dependency-name: openssl-probe
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-13 04:12:15 +00:00
e1bcde073d Bump actix-rt from 2.5.1 to 2.6.0
Bumps [actix-rt](https://github.com/actix/actix-net) from 2.5.1 to 2.6.0.
- [Release notes](https://github.com/actix/actix-net/releases)
- [Commits](https://github.com/actix/actix-net/compare/rt-v2.5.1...rt-v2.6.0)

---
updated-dependencies:
- dependency-name: actix-rt
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-13 04:12:06 +00:00
e57d40e766 Merge pull request #395 from vbrandl/dependabot/cargo/reqwest-0.11.9
All checks were successful
continuous-integration/drone/push Build is passing
Bump reqwest from 0.11.8 to 0.11.9
2022-01-11 12:17:03 +01:00
21f3790aee Merge pull request #394 from vbrandl/dependabot/cargo/tempfile-3.3.0
Bump tempfile from 3.2.0 to 3.3.0
2022-01-11 12:16:55 +01:00
95213c3ded Bump tempfile from 3.2.0 to 3.3.0
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/Stebalien/tempfile/releases)
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/NEWS)
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.2.0...v3.3.0)

---
updated-dependencies:
- dependency-name: tempfile
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-11 11:10:18 +00:00
23b14ea01d Bump reqwest from 0.11.8 to 0.11.9
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.11.8 to 0.11.9.
- [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.11.8...v0.11.9)

---
updated-dependencies:
- dependency-name: reqwest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-11 11:10:15 +00:00
515791beba Merge pull request #393 from vbrandl/dependabot/cargo/serde_json-1.0.74
Bump serde_json from 1.0.73 to 1.0.74
2022-01-11 12:09:22 +01:00
ed380fc28a Merge pull request #392 from vbrandl/dependabot/cargo/actix-rt-2.5.1
Bump actix-rt from 2.5.0 to 2.5.1
2022-01-11 12:09:06 +01:00
6504159899 Merge pull request #391 from vbrandl/dependabot/cargo/serde-1.0.133
Bump serde from 1.0.132 to 1.0.133
2022-01-11 12:08:50 +01:00
4269140af5 Bump serde_json from 1.0.73 to 1.0.74
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.73 to 1.0.74.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.73...v1.0.74)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 04:18:47 +00:00
204ba89613 Bump actix-rt from 2.5.0 to 2.5.1
Bumps [actix-rt](https://github.com/actix/actix-net) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/actix/actix-net/releases)
- [Commits](https://github.com/actix/actix-net/compare/rt-v2.5.0...rt-v2.5.1)

---
updated-dependencies:
- dependency-name: actix-rt
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 04:18:39 +00:00
80861a3682 Bump serde from 1.0.132 to 1.0.133
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.132 to 1.0.133.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 04:18:21 +00:00
e23869da9a Bump version (v0.20.4)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2021-12-30 12:23:55 +01:00
96896e00b7 Merge pull request #390 from vbrandl/dependabot/cargo/tracing-actix-web-0.5.0-beta.1
All checks were successful
continuous-integration/drone/push Build is passing
Bump tracing-actix-web from 0.4.0-beta.14 to 0.5.0-beta.1
2021-12-30 12:02:48 +01:00
d0cb529708 Merge pull request #389 from vbrandl/dependabot/cargo/tracing-subscriber-0.3.5
Bump tracing-subscriber from 0.3.4 to 0.3.5
2021-12-30 12:02:27 +01:00
f828878ebf Bump tracing-actix-web from 0.4.0-beta.14 to 0.5.0-beta.1
Bumps [tracing-actix-web](https://github.com/LukeMathWalker/tracing-actix-web) from 0.4.0-beta.14 to 0.5.0-beta.1.
- [Release notes](https://github.com/LukeMathWalker/tracing-actix-web/releases)
- [Commits](https://github.com/LukeMathWalker/tracing-actix-web/compare/v0.4.0-beta.14...v0.5.0-beta.1)

---
updated-dependencies:
- dependency-name: tracing-actix-web
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-30 04:16:00 +00:00
e887b7553e Bump tracing-subscriber from 0.3.4 to 0.3.5
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing) from 0.3.4 to 0.3.5.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.4...tracing-subscriber-0.3.5)

---
updated-dependencies:
- dependency-name: tracing-subscriber
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-30 04:15:52 +00:00
40bae1b5a3 Merge pull request #386 from vbrandl/dependabot/cargo/reqwest-0.11.8
Bump reqwest from 0.11.7 to 0.11.8
2021-12-24 14:45:05 +01:00
aa12a8bc24 Merge pull request #388 from vbrandl/dependabot/cargo/tracing-subscriber-0.3.4
Bump tracing-subscriber from 0.3.3 to 0.3.4
2021-12-24 14:44:36 +01:00
776e068ab5 Bump tracing-subscriber from 0.3.3 to 0.3.4
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing) from 0.3.3 to 0.3.4.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.3...tracing-subscriber-0.3.4)

---
updated-dependencies:
- dependency-name: tracing-subscriber
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-24 04:16:39 +00:00
73299a9e73 Bump reqwest from 0.11.7 to 0.11.8
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.11.7 to 0.11.8.
- [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.11.7...v0.11.8)

---
updated-dependencies:
- dependency-name: reqwest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-21 04:17:22 +00:00
5ec1a68314 Merge pull request #385 from vbrandl/dependabot/cargo/futures-0.3.19
All checks were successful
continuous-integration/drone/push Build is passing
Bump futures from 0.3.18 to 0.3.19
2021-12-20 20:29:52 +01:00
5da1be83ef Merge pull request #384 from vbrandl/dependabot/cargo/serde-1.0.132
Bump serde from 1.0.131 to 1.0.132
2021-12-20 20:29:21 +01:00
44d28233e2 Merge pull request #383 from vbrandl/dependabot/cargo/tokio-1.15.0
Bump tokio from 1.14.0 to 1.15.0
2021-12-20 20:25:58 +01:00
e6585c7500 Bump futures from 0.3.18 to 0.3.19
Bumps [futures](https://github.com/rust-lang/futures-rs) from 0.3.18 to 0.3.19.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.18...0.3.19)

---
updated-dependencies:
- dependency-name: futures
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-20 04:18:45 +00:00
be96d51d71 Bump serde from 1.0.131 to 1.0.132
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.131 to 1.0.132.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-17 04:17:25 +00:00
0273e22581 Bump tokio from 1.14.0 to 1.15.0
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.14.0...tokio-1.15.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-16 04:17:13 +00:00
675c0f1941 Merge pull request #382 from vbrandl/dependabot/cargo/serde_json-1.0.73
All checks were successful
continuous-integration/drone/push Build is passing
Bump serde_json from 1.0.72 to 1.0.73
2021-12-14 18:14:37 +01:00
bdca0feee2 Merge pull request #381 from vbrandl/dependabot/cargo/vergen-6.0.0
Bump vergen from 5.2.0 to 6.0.0
2021-12-14 18:14:16 +01:00
0d8611779c Bump serde_json from 1.0.72 to 1.0.73
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.72 to 1.0.73.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.72...v1.0.73)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-14 04:14:56 +00:00
3824cce2c7 Bump vergen from 5.2.0 to 6.0.0
Bumps [vergen](https://github.com/rustyhorde/vergen) from 5.2.0 to 6.0.0.
- [Release notes](https://github.com/rustyhorde/vergen/releases)
- [Commits](https://github.com/rustyhorde/vergen/compare/5.2.0...6.0.0)

---
updated-dependencies:
- dependency-name: vergen
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-10 04:15:39 +00:00
13b90f6ab0 Merge pull request #379 from vbrandl/dependabot/cargo/vergen-5.2.0
All checks were successful
continuous-integration/drone/push Build is passing
Bump vergen from 5.1.18 to 5.2.0
2021-12-09 12:18:11 +01:00
8e4f5fd519 Merge pull request #380 from vbrandl/dependabot/cargo/serde-1.0.131
Bump serde from 1.0.130 to 1.0.131
2021-12-09 12:17:55 +01:00
a101f91004 Bump serde from 1.0.130 to 1.0.131
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.130 to 1.0.131.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-09 04:15:26 +00:00
1107c3dba7 Bump vergen from 5.1.18 to 5.2.0
Bumps [vergen](https://github.com/rustyhorde/vergen) from 5.1.18 to 5.2.0.
- [Release notes](https://github.com/rustyhorde/vergen/releases)
- [Commits](https://github.com/rustyhorde/vergen/compare/5.1.18...5.2.0)

---
updated-dependencies:
- dependency-name: vergen
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-06 04:18:28 +00:00
ba65938817 Merge pull request #375 from vbrandl/dependabot/cargo/vergen-5.1.18
Bump vergen from 5.1.17 to 5.1.18
2021-12-02 14:40:38 +01:00
acaf7b80e4 Merge pull request #376 from vbrandl/dependabot/cargo/tracing-subscriber-0.3.3
Bump tracing-subscriber from 0.3.2 to 0.3.3
2021-12-02 14:40:25 +01:00
e5ce8dc125 Merge pull request #377 from vbrandl/dependabot/cargo/reqwest-0.11.7
Bump reqwest from 0.11.6 to 0.11.7
2021-12-02 14:40:16 +01:00
ef4c4e6046 Merge pull request #378 from vbrandl/dependabot/cargo/git2-0.13.25
Bump git2 from 0.13.24 to 0.13.25
2021-12-02 14:39:53 +01:00
c78ca9e8f8 Bump git2 from 0.13.24 to 0.13.25
Bumps [git2](https://github.com/rust-lang/git2-rs) from 0.13.24 to 0.13.25.
- [Release notes](https://github.com/rust-lang/git2-rs/releases)
- [Commits](https://github.com/rust-lang/git2-rs/compare/0.13.24...0.13.25)

---
updated-dependencies:
- dependency-name: git2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-02 04:17:03 +00:00
b4c02058b1 Bump reqwest from 0.11.6 to 0.11.7
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.11.6 to 0.11.7.
- [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.11.6...v0.11.7)

---
updated-dependencies:
- dependency-name: reqwest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-01 04:18:39 +00:00
8e5a189a40 Bump tracing-subscriber from 0.3.2 to 0.3.3
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing) from 0.3.2 to 0.3.3.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.2...tracing-subscriber-0.3.3)

---
updated-dependencies:
- dependency-name: tracing-subscriber
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-30 04:16:50 +00:00
be58d750c1 Bump vergen from 5.1.17 to 5.1.18
Bumps [vergen](https://github.com/rustyhorde/vergen) from 5.1.17 to 5.1.18.
- [Release notes](https://github.com/rustyhorde/vergen/releases)
- [Commits](https://github.com/rustyhorde/vergen/compare/5.1.17...5.1.18)

---
updated-dependencies:
- dependency-name: vergen
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-29 04:18:04 +00:00
9a2498e9db Merge pull request #374 from vbrandl/dependabot/cargo/serde_json-1.0.72
Some checks failed
continuous-integration/drone/push Build is failing
Bump serde_json from 1.0.71 to 1.0.72
2021-11-26 11:40:17 +01:00
44bb3562d1 Bump serde_json from 1.0.71 to 1.0.72
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.71 to 1.0.72.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.71...v1.0.72)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-26 04:17:47 +00:00
8164577120 Merge pull request #373 from vbrandl/dependabot/cargo/tracing-bunyan-formatter-0.3.1
Some checks failed
continuous-integration/drone/push Build is failing
Bump tracing-bunyan-formatter from 0.3.0 to 0.3.1
2021-11-25 19:48:40 +01:00
ed2c0dad0b Bump tracing-bunyan-formatter from 0.3.0 to 0.3.1
Bumps [tracing-bunyan-formatter](https://github.com/LukeMathWalker/tracing-bunyan-formatter) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/LukeMathWalker/tracing-bunyan-formatter/releases)
- [Commits](https://github.com/LukeMathWalker/tracing-bunyan-formatter/compare/v0.3.0...v0.3.1)

---
updated-dependencies:
- dependency-name: tracing-bunyan-formatter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-25 04:15:50 +00:00
790e746759 Merge pull request #371 from vbrandl/dependabot/cargo/actix-rt-2.5.0
Some checks failed
continuous-integration/drone/push Build is failing
Bump actix-rt from 2.4.0 to 2.5.0
2021-11-24 17:02:23 +01:00
ce12a3fa13 Merge pull request #370 from vbrandl/dependabot/cargo/futures-0.3.18
Bump futures from 0.3.17 to 0.3.18
2021-11-24 17:02:10 +01:00
a3bcffc8a8 Bump actix-rt from 2.4.0 to 2.5.0
Bumps [actix-rt](https://github.com/actix/actix-net) from 2.4.0 to 2.5.0.
- [Release notes](https://github.com/actix/actix-net/releases)
- [Commits](https://github.com/actix/actix-net/compare/rt-v2.4.0...rt-v2.5.0)

---
updated-dependencies:
- dependency-name: actix-rt
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-23 04:16:34 +00:00
0ca471422a Bump futures from 0.3.17 to 0.3.18
Bumps [futures](https://github.com/rust-lang/futures-rs) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.17...0.3.18)

---
updated-dependencies:
- dependency-name: futures
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-23 04:16:26 +00:00
87d7e5ac5a Merge pull request #369 from vbrandl/dependabot/cargo/tracing-subscriber-0.3.2
All checks were successful
continuous-integration/drone/push Build is passing
Bump tracing-subscriber from 0.3.1 to 0.3.2
2021-11-22 11:26:48 +01:00
85a5e11c54 Bump tracing-subscriber from 0.3.1 to 0.3.2
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing) from 0.3.1 to 0.3.2.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.1...tracing-subscriber-0.3.2)

---
updated-dependencies:
- dependency-name: tracing-subscriber
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 04:20:56 +00:00
4fc9aea280 Merge pull request #368 from vbrandl/dependabot/cargo/serde_json-1.0.71
Bump serde_json from 1.0.69 to 1.0.71
2021-11-18 13:40:19 +01:00
98313c8ba6 Merge pull request #367 from vbrandl/dependabot/cargo/tokio-1.14.0
Bump tokio from 1.13.0 to 1.14.0
2021-11-18 13:40:11 +01:00
ac9d09f992 Merge pull request #366 from vbrandl/dependabot/cargo/awc-3.0.0-beta.10
Bump awc from 3.0.0-beta.9 to 3.0.0-beta.10
2021-11-18 13:39:59 +01:00
9996ec989d Merge pull request #364 from vbrandl/dependabot/cargo/git2-0.13.24
Bump git2 from 0.13.23 to 0.13.24
2021-11-18 13:39:18 +01:00
d39c1830a6 Bump serde_json from 1.0.69 to 1.0.71
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.69 to 1.0.71.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.69...v1.0.71)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-18 04:18:54 +00:00
9017ab3841 Bump tokio from 1.13.0 to 1.14.0
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/commits)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-17 04:16:18 +00:00
d226543cef Bump awc from 3.0.0-beta.9 to 3.0.0-beta.10
Bumps [awc](https://github.com/actix/actix-web) from 3.0.0-beta.9 to 3.0.0-beta.10.
- [Release notes](https://github.com/actix/actix-web/releases)
- [Changelog](https://github.com/actix/actix-web/blob/master/CHANGES.md)
- [Commits](https://github.com/actix/actix-web/compare/awc-v3.0.0-beta.9...awc-v3.0.0-beta.10)

---
updated-dependencies:
- dependency-name: awc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-16 04:15:07 +00:00
dea5fa4a09 Bump git2 from 0.13.23 to 0.13.24
Bumps [git2](https://github.com/rust-lang/git2-rs) from 0.13.23 to 0.13.24.
- [Release notes](https://github.com/rust-lang/git2-rs/releases)
- [Commits](https://github.com/rust-lang/git2-rs/compare/0.13.23...0.13.24)

---
updated-dependencies:
- dependency-name: git2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-16 04:14:42 +00:00
5 changed files with 430 additions and 512 deletions

802
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
[package]
name = "hoc"
version = "0.20.3"
version = "0.21.1"
authors = ["Valentin Brandl <vbrandl@riseup.net>"]
edition = "2018"
build = "build.rs"
@ -13,34 +13,34 @@ path = "src/main.rs"
name = "hoc"
[dependencies]
actix-rt = "2.4.0"
actix-web = "4.0.0-beta.8"
actix-rt = "2.6.0"
actix-web = "4.0.0-rc.1"
badge = "0.3.0"
bytes = "1.1.0"
config = { version = "0.11.0", features = ["toml"] }
dotenv = "0.15.0"
futures = "0.3.17"
git2 = "0.13.23"
futures = "0.3.19"
git2 = "0.13.25"
lazy_static = "1.4.0"
number_prefix = "0.4.0"
openssl-probe = "0.1.4"
reqwest = "0.11.6"
serde = "1.0.130"
serde_derive = "1.0.130"
serde_json = "1.0.69"
openssl-probe = "0.1.5"
reqwest = "0.11.9"
serde = "1.0.136"
serde_derive = "1.0.136"
serde_json = "1.0.78"
tracing = "0.1.29"
tracing-actix-web = "0.4.0-beta.14"
tracing-bunyan-formatter = "0.3.0"
tracing-actix-web = "0.5.0-rc.1"
tracing-bunyan-formatter = "0.3.2"
tracing-futures = "0.2.5"
tracing-log = "0.1.2"
tracing-subscriber = { version = "0.3.1", features = ["registry", "env-filter"] }
tracing-subscriber = { version = "0.3.7", features = ["registry", "env-filter"] }
[build-dependencies]
ructe = "0.13.4"
vergen = { version = "5.1.17", default-features = false, features = ["git"] }
vergen = { version = "6.0.2", default-features = false, features = ["git"] }
[dev-dependencies]
awc = "3.0.0-beta.9"
awc = "3.0.0-beta.20"
ructe = "0.13.4"
tempfile = "3.2.0"
tokio = "1.13.0"
tempfile = "3.3.0"
tokio = "1.16.1"

View File

@ -462,11 +462,13 @@ async fn async_p404(repo_count: web::Data<AtomicUsize>) -> Result<HttpResponse>
p404(repo_count)
}
fn css() -> HttpResponse {
#[get("/tacit-css.min.css")]
async fn css() -> HttpResponse {
HttpResponse::Ok().content_type("text/css").body(CSS)
}
fn favicon32() -> HttpResponse {
#[get("/favicon.ico")]
async fn favicon32() -> HttpResponse {
HttpResponse::Ok().content_type("image/png").body(FAVICON)
}
@ -477,48 +479,21 @@ async fn start_server(listener: TcpListener, settings: Settings) -> std::io::Res
web::Data::new(AtomicUsize::new(count::count_repositories(&settings.repodir).unwrap()));
let state = web::Data::new(State { settings });
Ok(HttpServer::new(move || {
App::new()
let app = App::new()
.app_data(state.clone())
.app_data(repo_count.clone())
.wrap(tracing_actix_web::TracingLogger::default())
.wrap(middleware::NormalizePath::new(TrailingSlash::Trim))
.service(index)
.service(health_check)
.service(web::resource("/tacit-css.min.css").route(web::get().to(css)))
.service(web::resource("/favicon.ico").route(web::get().to(favicon32)))
.service(css)
.service(favicon32)
.service(generate)
.service(web::resource("/github/{user}/{repo}").to(calculate_hoc::<GitHub>))
.service(web::resource("/gitlab/{user}/{repo}").to(calculate_hoc::<Gitlab>))
.service(web::resource("/bitbucket/{user}/{repo}").to(calculate_hoc::<Bitbucket>))
.service(web::resource("/sourcehut/{user}/{repo}").to(calculate_hoc::<Sourcehut>))
.service(
web::resource("/github/{user}/{repo}/delete")
.route(web::post().to(delete_repo_and_cache::<GitHub>)),
)
.service(
web::resource("/gitlab/{user}/{repo}/delete")
.route(web::post().to(delete_repo_and_cache::<Gitlab>)),
)
.service(
web::resource("/bitbucket/{user}/{repo}/delete")
.route(web::post().to(delete_repo_and_cache::<Bitbucket>)),
)
.service(
web::resource("/sourcehut/{user}/{repo}/delete")
.route(web::post().to(delete_repo_and_cache::<Sourcehut>)),
)
.service(web::resource("/github/{user}/{repo}/json").to(json_hoc::<GitHub>))
.service(web::resource("/gitlab/{user}/{repo}/json").to(json_hoc::<Gitlab>))
.service(web::resource("/bitbucket/{user}/{repo}/json").to(json_hoc::<Bitbucket>))
.service(web::resource("/sourcehut/{user}/{repo}/json").to(json_hoc::<Sourcehut>))
.service(web::resource("/view/github/{user}/{repo}").to(overview::<GitHub>))
.service(web::resource("/view/gitlab/{user}/{repo}").to(overview::<Gitlab>))
.service(web::resource("/view/bitbucket/{user}/{repo}").to(overview::<Bitbucket>))
.service(web::resource("/github/{user}/{repo}/view").to(overview::<GitHub>))
.service(web::resource("/gitlab/{user}/{repo}/view").to(overview::<Gitlab>))
.service(web::resource("/bitbucket/{user}/{repo}/view").to(overview::<Bitbucket>))
.service(web::resource("/sourcehut/{user}/{repo}/view").to(overview::<Sourcehut>))
.default_service(web::to(async_p404))
.default_service(web::to(async_p404));
let app = GitHub::register_service(app);
let app = Gitlab::register_service(app);
let app = Bitbucket::register_service(app);
Sourcehut::register_service(app)
})
.workers(workers)
.listen(listener)?

View File

@ -1,7 +1,31 @@
pub(crate) trait Service {
use crate::{calculate_hoc, delete_repo_and_cache, json_hoc, overview};
use actix_web::{
dev::{ServiceFactory, ServiceRequest},
web, App,
};
pub(crate) trait Service: Sized + 'static {
fn domain() -> &'static str;
fn url_path() -> &'static str;
fn commit_url(repo: &str, commit_ref: &str) -> String;
fn register_service<T>(app: App<T>) -> App<T>
where
T: ServiceFactory<ServiceRequest, Config = (), Error = actix_web::Error, InitError = ()>,
{
let url_path = Self::url_path();
app.service(
web::resource(format!("/{url_path}/{{user}}/{{repo}}")).to(calculate_hoc::<Self>),
)
.service(
web::resource(format!("/{url_path}/{{user}}/{{repo}}/delete"))
.route(web::post().to(delete_repo_and_cache::<Self>)),
)
.service(web::resource(format!("/{url_path}/{{user}}/{{repo}}/json")).to(json_hoc::<Self>))
.service(web::resource(format!("/view/{url_path}/{{user}}/{{repo}}")).to(overview::<Self>))
.service(web::resource(format!("/{url_path}/{{user}}/{{repo}}/view")).to(overview::<Self>))
}
}
#[derive(Deserialize, Serialize)]

31
tests/resources.rs Normal file
View File

@ -0,0 +1,31 @@
mod util;
#[actix_rt::test]
async fn favicon() {
let test_app = util::spawn_app().await;
let client = awc::Client::default();
let response = client
.get(&format!("{}/favicon.ico", test_app.address))
.send()
.await
.expect("Failed to execute request");
assert!(response.status().is_success());
}
#[actix_rt::test]
async fn tacit_css() {
let test_app = util::spawn_app().await;
let client = awc::Client::default();
let response = client
.get(&format!("{}/tacit-css.min.css", test_app.address))
.send()
.await
.expect("Failed to execute request");
assert!(response.status().is_success());
}