Parse rusqlite store URLs exactly as sqlx does, and restate the C dependency invariant#7

merged
main
xpd/rusqlite-provider-url-parity
opened28m agobyBBjørn Aagaard

Follow-up to #6, closing two findings from the independent grade.

ChangeBeforeAfter
RusqliteProvider URL parsing (src/rusqlite_provider.rs)path used verbatim; unknown mode= opened read-writepath percent-decoded and unknown mode/cache value or parameter rejected, as sqlx 0.8 does
AGENTS.md invariant 1required Linux-only vendored sections that no longer exista C dependency builds from the source it ships (rusqlite bundled) or stays behind an opt-in feature

Proof on this commit, c62fed25:

CheckResult
sqlx and rusqlite providers on sqlite:<dir>/a%41b/x.sqlite?mode=rwcboth create aAb/x.sqlite
mode=bogusboth reject: unknown value "bogus" for mode
cargo test --test duroxide_provider_conformance234 passed, 0 failed
old vs new provider on copies of 184 real stores184 identical, 0 errors, 0 changed
lefthook run pre-commit --all-files and pre-pushpass

Checks

4 successful
All checks passed
f8190a7