workspace deps hygiene: minimal features, default-members sans tui; drop utoipa-scalar + /scalar; ci test --workspace; .sqlx dockerignore
This commit is contained in:
@@ -11,31 +11,30 @@ default = ["federation"]
|
||||
federation = ["application/federation"]
|
||||
|
||||
[dependencies]
|
||||
tower-http = { version = "0.6.8", features = ["cors", "fs", "trace", "tracing"] }
|
||||
infer = "0.19.0"
|
||||
percent-encoding = "2"
|
||||
axum-governor = "2"
|
||||
tower-http = { workspace = true, features = ["cors", "fs", "trace", "tracing"] }
|
||||
infer = { workspace = true }
|
||||
percent-encoding = { workspace = true }
|
||||
axum-governor = { workspace = true }
|
||||
|
||||
axum = { workspace = true }
|
||||
serde = { workspace = true }
|
||||
axum = { workspace = true, features = ["macros", "multipart", "http1", "json", "query", "form", "tokio", "matched-path", "original-uri", "tower-log", "tracing"] }
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde_json = { workspace = true }
|
||||
tracing = { workspace = true }
|
||||
tokio = { workspace = true }
|
||||
uuid = { workspace = true }
|
||||
chrono = { workspace = true }
|
||||
uuid = { workspace = true, features = ["v4", "serde"] }
|
||||
chrono = { workspace = true, features = ["clock", "serde"] }
|
||||
chrono-tz = { workspace = true }
|
||||
futures = { workspace = true }
|
||||
|
||||
api-types = { workspace = true }
|
||||
domain = { workspace = true }
|
||||
application = { workspace = true }
|
||||
askama = { version = "0.16.0" }
|
||||
utoipa = { version = "5.5.0", features = ["axum_extras", "uuid"] }
|
||||
utoipa-scalar = { version = "0.3.0", features = ["axum"], default-features = false }
|
||||
utoipa-swagger-ui = { version = "9.0.2", features = ["axum", "vendored"] }
|
||||
askama = { workspace = true }
|
||||
utoipa = { workspace = true, features = ["axum_extras", "uuid"] }
|
||||
utoipa-swagger-ui = { workspace = true, features = ["axum", "vendored"] }
|
||||
|
||||
[dev-dependencies]
|
||||
bytes = { workspace = true }
|
||||
futures = { workspace = true }
|
||||
tower = { version = "0.5", features = ["util"] }
|
||||
tower = { workspace = true, features = ["util"] }
|
||||
tokio = { workspace = true, features = ["rt", "macros"] }
|
||||
domain = { workspace = true, features = ["test-helpers"] }
|
||||
|
||||
@@ -16,7 +16,6 @@ use utoipa::{
|
||||
Modify, OpenApi,
|
||||
openapi::security::{Http, HttpAuthScheme, SecurityScheme},
|
||||
};
|
||||
use utoipa_scalar::{Scalar, Servable};
|
||||
use utoipa_swagger_ui::SwaggerUi;
|
||||
|
||||
struct SecurityAddon;
|
||||
@@ -62,9 +61,7 @@ pub fn spec() -> utoipa::openapi::OpenApi {
|
||||
}
|
||||
|
||||
pub fn serve(router: Router) -> Router {
|
||||
tracing::info!("API docs at /docs (Swagger) and /scalar");
|
||||
tracing::info!("API docs at /docs (Swagger)");
|
||||
let spec = spec();
|
||||
router
|
||||
.merge(SwaggerUi::new("/docs").url("/openapi.json", spec.clone()))
|
||||
.merge(Scalar::with_url("/scalar", spec))
|
||||
router.merge(SwaggerUi::new("/docs").url("/openapi.json", spec))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user