From 095639a3fd870487c2dd4e4403fa27a2a069017c Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 29 Apr 2022 12:01:10 +0000 Subject: [PATCH 1/4] Update Rust crate tower-http to 0.3.2 --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6d2fcd2..25597ad 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -995,9 +995,9 @@ dependencies = [ [[package]] name = "tower-http" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7755f984aa46a9d50829dc84b6a674b2f3b8b4de47c0708923953b090d48acc" +checksum = "e980386f06883cf4d0578d6c9178c81f68b45d77d00f2c2c1bc034b3439c2c56" dependencies = [ "base64", "bitflags", diff --git a/Cargo.toml b/Cargo.toml index eb5b457..01ea119 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ hyper = { version = "0.14.18" } tokio = { version = "1.18.0", features = ["full"] } tracing = "0.1.34" tracing-subscriber = {version = "0.3.11", features = ["env-filter"] } -tower-http = { version = "0.3.1", features = ["fs", "trace", "auth"] } +tower-http = { version = "0.3.2", features = ["fs", "trace", "auth"] } tar = "0.4.38" flate2 = "1.0.23" tokio-util = { version = "0.7.1", features = ["io"] } From 888a9eca7b489fa77b3ae99f573a376c7567361b Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sat, 30 Apr 2022 20:04:04 +0000 Subject: [PATCH 2/4] Update Rust crate serde_json to 1.0.80 --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 25597ad..edae178 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -787,9 +787,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.79" +version = "1.0.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e8d9fa5c3b304765ce1fd9c4c8a3de2c8db365a5b91be52f186efc675681d95" +checksum = "f972498cf015f7c0746cac89ebe1d6ef10c293b94175a243a2d9442c163d9944" dependencies = [ "itoa", "ryu", diff --git a/Cargo.toml b/Cargo.toml index 01ea119..6bb10bb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ flate2 = "1.0.23" tokio-util = { version = "0.7.1", features = ["io"] } futures-util = "0.3.21" uuid = { version = "1.0.0", features = ["v4"] } -serde_json = "1.0.79" +serde_json = "1.0.80" metrics = "0.18.1" metrics-exporter-prometheus = "0.9.0" serde = { version = "1.0", features = ["derive"] } From 9622196474b42ff62640254826957852020790b9 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Sun, 1 May 2022 12:00:08 +0200 Subject: [PATCH 3/4] Split vieter docs into separate dir --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 423c0bd..6ef5352 100644 --- a/src/main.rs +++ b/src/main.rs @@ -51,7 +51,7 @@ async fn main() { // Each static site gets mounted explicitely so that the default site can be used as fallback // Each entry is of the form (route, static dir name) - let sites = [("/docs", "docs"), ("/api-docs/vieter", "api-docs-vieter")]; + let sites = [("/docs/vieter", "docs-vieter"), ("/api-docs/vieter", "api-docs-vieter")]; for (path, dir) in sites { let full_path = format!("{}/{}", static_dir, dir); From 95961f141dd9ee7d73b19dbe852539aa21b5aa61 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Sun, 1 May 2022 12:00:48 +0200 Subject: [PATCH 4/4] Ran cargo fmt --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 6ef5352..896f0be 100644 --- a/src/main.rs +++ b/src/main.rs @@ -51,7 +51,10 @@ async fn main() { // Each static site gets mounted explicitely so that the default site can be used as fallback // Each entry is of the form (route, static dir name) - let sites = [("/docs/vieter", "docs-vieter"), ("/api-docs/vieter", "api-docs-vieter")]; + let sites = [ + ("/docs/vieter", "docs-vieter"), + ("/api-docs/vieter", "api-docs-vieter"), + ]; for (path, dir) in sites { let full_path = format!("{}/{}", static_dir, dir);