From d14199813ff7d291cba6e9620ef88ef77f732bb3 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Wed, 10 Jun 2026 03:33:48 +0200 Subject: [PATCH] perf: optimize compile times MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove sqlx 'macros' feature — migrated to runtime queries in f4fd915, proc-macro crates (sqlx-macros-core, sqlx-macros) were dead weight - Add [profile.dev] debug=1 (line tables only) + split-debuginfo=unpacked to speed up linking on macOS - Add [profile.dev.package.'*'] opt-level=2 to compile deps faster at runtime; one-time cost on first build, cached after that --- Cargo.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 9dca8cf..61465a6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,7 +52,6 @@ sqlx = { version = "0.8.6", features = [ "runtime-tokio-rustls", "sqlite", "uuid", - "macros", ] } rand = "0.9" reqwest = { version = "0.13", features = ["json", "query"] } @@ -91,3 +90,10 @@ plex = { path = "crates/adapters/plex" } image-converter = { path = "crates/adapters/image-converter" } sqlite-search = { path = "crates/adapters/sqlite-search" } postgres-search = { path = "crates/adapters/postgres-search" } + +[profile.dev] +debug = 1 # line tables only — still debuggable, much faster linking +split-debuginfo = "unpacked" # macOS: skip dsymutil on every link + +[profile.dev.package."*"] +opt-level = 2 # compile deps faster at runtime; paid once, cached after