From 28ef9657f6e389704a345caaaf9a3d4644e1cba3 Mon Sep 17 00:00:00 2001 From: Tobias Frischmann Date: Wed, 9 Sep 2026 16:38:15 +0200 Subject: [PATCH] further improve features --- Cargo.lock | 38 +------------------------------------- Cargo.toml | 6 +++--- api/migration/Cargo.toml | 3 ++- api/orm/Cargo.toml | 6 +++--- 4 files changed, 9 insertions(+), 44 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c7e92bf..8044d90 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -651,7 +651,6 @@ dependencies = [ "bytes", "futures-core", "futures-util", - "headers", "http 1.4.0", "http-body 1.0.1", "http-body-util", @@ -2078,30 +2077,6 @@ dependencies = [ "hashbrown 0.16.1", ] -[[package]] -name = "headers" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3314d5adb5d94bcdf56771f2e50dbbc80bb4bdf88967526706205ac9eff24eb" -dependencies = [ - "base64 0.22.1", - "bytes", - "headers-core", - "http 1.4.0", - "httpdate", - "mime", - "sha1 0.10.6", -] - -[[package]] -name = "headers-core" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54b4a22553d4242c49fddb9ba998a99962b5cc6f22cb5a3482bec22522403ce4" -dependencies = [ - "http 1.4.0", -] - [[package]] name = "heck" version = "0.4.1" @@ -4487,17 +4462,6 @@ dependencies = [ "web-push", ] -[[package]] -name = "sha1" -version = "0.10.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" -dependencies = [ - "cfg-if", - "cpufeatures 0.2.17", - "digest 0.10.7", -] - [[package]] name = "sha1" version = "0.11.0" @@ -4787,7 +4751,7 @@ dependencies = [ "percent-encoding", "rust_decimal", "serde", - "sha1 0.11.0", + "sha1", "sha2 0.11.0", "sqlx-core", "thiserror 2.0.18", diff --git a/Cargo.toml b/Cargo.toml index 07b6527..91d0635 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,11 +28,11 @@ types = { path = "./libs/types" } # --- Web & API Stack --- axum = "0.8.9" -axum-extra = { version = "0.12.6", features = ["typed-header"] } +axum-extra = "0.12.6" axum-test = { version = "20.0.0", features = ["reqwest"] } http = "1.4.0" jsonwebtoken = { version = "10.3.0", features = ["aws_lc_rs"] } -reqwest = { version = "0.13.2", features = ["json", "stream"] } +reqwest = { version = "0.13.2", features = ["json"] } reqwest-sse = "0.2.0" tower = "0.5.3" tower-http = { version = "0.6.8", features = ["cors", "trace"] } @@ -40,7 +40,7 @@ web-push = { version = "0.11.0", default-features = false, features = ["hyper-cl # --- Database & Persistence --- sea-orm = { version = "2.0.2", features = ["debug-print", "runtime-tokio"] } -sea-orm-migration = { version = "2.0.2", features = ["runtime-tokio"] } +sea-orm-migration = { version = "2.0.2", features = ["runtime-tokio"], default-features = false } # --- Async & Runtimes --- async-std = { version = "1", features = ["attributes", "tokio1"] } diff --git a/api/migration/Cargo.toml b/api/migration/Cargo.toml index e0422b5..ec97bea 100644 --- a/api/migration/Cargo.toml +++ b/api/migration/Cargo.toml @@ -9,10 +9,11 @@ name = "migration" path = "src/lib.rs" [features] -default = ["postgres", "sqlite"] +default = ["postgres", "sqlite", "cli"] postgres = ["sea-orm-migration/sqlx-postgres"] sqlite = ["sea-orm-migration/sqlx-sqlite"] +cli = ["sea-orm-migration/cli"] [dependencies] async-std = { workspace = true } diff --git a/api/orm/Cargo.toml b/api/orm/Cargo.toml index dd1a3af..e60467b 100644 --- a/api/orm/Cargo.toml +++ b/api/orm/Cargo.toml @@ -6,11 +6,11 @@ edition = "2024" [features] default = [] -postgres = ["sea-orm/sqlx-postgres"] -sqlite = ["sea-orm/sqlx-sqlite"] +postgres = ["sea-orm/sqlx-postgres", "migration/postgres"] +sqlite = ["sea-orm/sqlx-sqlite", "migration/sqlite"] [dependencies] -migration = { path = "../migration" } +migration = { path = "../migration", default-features = false } sea-orm = { workspace = true } -- 2.51.2