diff --git a/Cargo.lock b/Cargo.lock index 8ac9a71..84fd9ad 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1222,6 +1222,12 @@ dependencies = [ "pin-project-lite", ] +[[package]] +name = "http-range-header" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9171a2ea8a68358193d15dd5d70c1c10a2afc3e7e4c5bc92bc9f025cebd7359c" + [[package]] name = "httparse" version = "1.10.1" @@ -2816,6 +2822,7 @@ dependencies = [ "thiserror 2.0.12", "tokio", "tower", + "tower-http", "tower-sessions", "tracing", "url", @@ -3776,12 +3783,20 @@ checksum = "adc82fd73de2a9722ac5da747f12383d2bfdb93591ee6c58486e0097890f05f2" dependencies = [ "bitflags", "bytes", + "futures-core", "futures-util", "http", "http-body", "http-body-util", + "http-range-header", + "httpdate", "iri-string", + "mime", + "mime_guess", + "percent-encoding", "pin-project-lite", + "tokio", + "tokio-util", "tower", "tower-layer", "tower-service", diff --git a/Cargo.toml b/Cargo.toml index 84984bd..95b6988 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,6 +20,7 @@ publish = false [features] debug = ["opentelemetry"] +frontend-dev = ["rustical_frontend/dev"] opentelemetry = [ "dep:opentelemetry", "dep:opentelemetry-otlp", diff --git a/crates/frontend/Cargo.toml b/crates/frontend/Cargo.toml index 056fef4..2a589b9 100644 --- a/crates/frontend/Cargo.toml +++ b/crates/frontend/Cargo.toml @@ -7,6 +7,10 @@ repository.workspace = true license.workspace = true publish = false +[features] +default = [] +dev = ["tower-http/fs"] + [dependencies] tower.workspace = true http.workspace = true @@ -34,3 +38,4 @@ axum-extra.workspace = true headers.workspace = true tower-sessions.workspace = true percent-encoding.workspace = true +tower-http = { workspace = true, optional = true } diff --git a/crates/frontend/public/assets/licenses.html b/crates/frontend/public/assets/licenses.html index fff0adb..a53f68d 100644 --- a/crates/frontend/public/assets/licenses.html +++ b/crates/frontend/public/assets/licenses.html @@ -44,8 +44,8 @@

Overview of licenses: