Replace duroxide's sqlx SQLite provider with a schema-identical rusqlite provider#6

merged
main
xpd/rusqlite-provider
opened1h agobyBBjørn Aagaard

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

AreaChange
src/rusqlite_provider.rsPort 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 sitesType swap only (SqliteProvider → RusqliteProvider, options argument dropped)
ledger-distributedFeature, src/ledger/worker.rs (xpd ledger worker), PostgreSQL store and every cfg block removed
deny.tomlRUSTSEC-2026-0459 and RUSTSEC-2026-0543 ignores removed (no longer matched)
tests/duroxide_provider_conformance.rsduroxide's own 234-case SQLite provider validation suite against the new provider

Evidence

CheckResult
cargo test --test duroxide_provider_conformance234 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 providerschema hash matches existing stores, 13 checksums match, old sqlx provider opens it
Old and new xpd binaries, same ledger and quest flowidentical output, 9 steps
maturin build --release --zig --compatibility musllinux_1_2 --target x86_64-unknown-linux-muslwheel builds, static binary runs a ledger, no OpenSSL
cargo deny checkpasses
Cargo.lock569 → 409 packages, 33 → 19 crate names with more than one version
Release binary163,743,568 → 162,645,928 bytes (measured before rebase)

Checks

8 successful
All checks passed
de7f874