Replace duroxide's sqlx SQLite provider with a schema-identical rusqlite provider#6
Replaces duroxide's sqlx-based SQLite provider with a schema-identical rusqlite provider, and removes ledger-distributed (duroxide-pg), sqlx 0.8, chrono and the vendored openssl/openssl-sys pins.
What changes
| Area | Change |
|---|---|
src/rusqlite_provider.rs | Port of duroxide 0.2.1's SqliteProvider to rusqlite 0.43 (bundled libsqlite3-sys 0.40). Same SQL, DDL, 13 migration files and _sqlx_migrations rows (same SHA-384 checksums). Decodes SQL NULL as sqlx does. Each call runs on a blocking thread. |
| Six call sites | Type swap only (SqliteProvider → RusqliteProvider, options argument dropped) |
ledger-distributed | Feature, src/ledger/worker.rs (xpd ledger worker), PostgreSQL store and every cfg block removed |
deny.toml | RUSTSEC-2026-0459 and RUSTSEC-2026-0543 ignores removed (no longer matched) |
tests/duroxide_provider_conformance.rs | duroxide's own 234-case SQLite provider validation suite against the new provider |
Evidence
| Check | Result |
|---|---|
cargo test --test duroxide_provider_conformance | 234 passed, 0 failed |
Old vs new provider on copies of all 184 real stores (12 .git ledgers, ~/.local/state/xpd) | 184 identical, 0 differ, 0 errors, 0 schema or row changes |
| Store created by the new provider | schema hash matches existing stores, 13 checksums match, old sqlx provider opens it |
Old and new xpd binaries, same ledger and quest flow | identical output, 9 steps |
maturin build --release --zig --compatibility musllinux_1_2 --target x86_64-unknown-linux-musl | wheel builds, static binary runs a ledger, no OpenSSL |
cargo deny check | passes |
Cargo.lock | 569 → 409 packages, 33 → 19 crate names with more than one version |
| Release binary | 163,743,568 → 162,645,928 bytes (measured before rebase) |
Checks
8 successful