From 037a071b1aa675406366e63696c60eac591a766f Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Sat, 5 Oct 2024 12:47:38 -0400 Subject: Replace `unsafe` impl of backups with `rusqlite`. The unsafe code still exists, but I have more faith in the rusqlite authors than in myself to ensure that the code is correct. --- Cargo.lock | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index 6d5dc03..85aa54d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -554,6 +554,18 @@ dependencies = [ "rand", ] +[[package]] +name = "fallible-iterator" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649" + +[[package]] +name = "fallible-streaming-iterator" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a" + [[package]] name = "fastrand" version = "2.1.1" @@ -795,10 +807,10 @@ dependencies = [ "headers", "hex-literal", "itertools", - "libsqlite3-sys", "password-hash", "rand", "rand_core", + "rusqlite", "serde", "serde_json", "sqlx", @@ -1368,6 +1380,20 @@ dependencies = [ "zeroize", ] +[[package]] +name = "rusqlite" +version = "0.32.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7753b721174eb8ff87a9a0e799e2d7bc3749323e773db92e0984debb00019d6e" +dependencies = [ + "bitflags", + "fallible-iterator", + "fallible-streaming-iterator", + "hashlink", + "libsqlite3-sys", + "smallvec", +] + [[package]] name = "rustc-demangle" version = "0.1.24" -- cgit v1.2.3