commit 453924cdaee738b755894eb7d4a01792892b66d6
parent bf3b224f88c40039b3b6c70acc2851b2cc02e71d
Author: Silas Brack <silasbrack@gmail.com>
Date: Fri, 12 Jun 2026 21:51:05 +0200
perf: use system SQLite instead of bundled
On NixOS, system SQLite is always available and kept up to date.
Bundled added 2MB to the binary and ~10s to compile for no benefit.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Diffstat:
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
@@ -889,7 +889,6 @@ version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c10584274047cb335c23d3e61bcef8e323adae7c5c8c760540f73610177fc3f"
dependencies = [
- "cc",
"pkg-config",
"vcpkg",
]
diff --git a/Cargo.toml b/Cargo.toml
@@ -14,7 +14,7 @@ serde = { version = "1", features = ["derive"] }
serde_json = "1"
thiserror = "2"
tracing = "0.1"
-rusqlite = { version = "0.31", features = ["bundled"] }
+rusqlite = "0.31"
r2d2 = "0.8"
r2d2_sqlite = "0.24"
argon2 = "0.5"
diff --git a/flake.nix b/flake.nix
@@ -46,6 +46,7 @@
buildInputs = with pkgs; [
openssl
+ sqlite
] ++ lib.optionals pkgs.stdenv.isDarwin [
pkgs.darwin.apple_sdk.frameworks.Security
pkgs.darwin.apple_sdk.frameworks.SystemConfiguration
@@ -103,6 +104,7 @@
buildInputs = with pkgs; [
openssl
+ sqlite
] ++ lib.optionals pkgs.stdenv.isDarwin [
pkgs.darwin.apple_sdk.frameworks.Security
pkgs.darwin.apple_sdk.frameworks.SystemConfiguration