diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index a671c37..f9ecaa5 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -45,8 +45,8 @@ jobs: docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian build: |- set -e && - rustup install 1.86.0 && - rustup default 1.86.0 && + rustup install 1.88.0 && + rustup default 1.88.0 && apt-get update && apt-get -y install protobuf-compiler && yarn build --target x86_64-unknown-linux-gnu && diff --git a/Cargo.lock b/Cargo.lock index 88a86c1..25cef96 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -796,7 +796,7 @@ dependencies = [ [[package]] name = "denokv" -version = "0.12.0" +version = "0.13.0" dependencies = [ "anyhow", "aws-config", @@ -837,7 +837,7 @@ dependencies = [ [[package]] name = "denokv_proto" -version = "0.12.0" +version = "0.13.0" dependencies = [ "async-trait", "chrono", @@ -852,7 +852,7 @@ dependencies = [ [[package]] name = "denokv_remote" -version = "0.12.0" +version = "0.13.0" dependencies = [ "async-stream", "async-trait", @@ -877,7 +877,7 @@ dependencies = [ [[package]] name = "denokv_sqlite" -version = "0.12.0" +version = "0.13.0" dependencies = [ "async-stream", "async-trait", @@ -900,7 +900,7 @@ dependencies = [ [[package]] name = "denokv_timemachine" -version = "0.12.0" +version = "0.13.0" dependencies = [ "anyhow", "async-trait", @@ -1513,9 +1513,9 @@ checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c" [[package]] name = "libsqlite3-sys" -version = "0.32.0" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbb8270bb4060bd76c6e96f20c52d80620f1d82a3470885694e41e0f81ef6fe7" +checksum = "133c182a6a2c87864fe97778797e46c7e999672690dc9fa3ee8e241aa4a9c13f" dependencies = [ "cc", "pkg-config", @@ -1977,9 +1977,9 @@ dependencies = [ [[package]] name = "rusqlite" -version = "0.34.0" +version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37e34486da88d8e051c7c0e23c3f15fd806ea8546260aa2fec247e97242ec143" +checksum = "165ca6e57b20e1351573e3729b958bc62f0e48025386970b6e4d29e7a7e71f3f" dependencies = [ "bitflags 2.6.0", "fallible-iterator", diff --git a/Cargo.toml b/Cargo.toml index ec5c0f6..ce6326b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,10 +9,10 @@ authors = ["the Deno authors"] edition = "2021" [workspace.dependencies] -denokv_proto = { version = "0.12.0", path = "./proto" } -denokv_sqlite = { version = "0.12.0", path = "./sqlite" } -denokv_remote = { version = "0.12.0", path = "./remote" } -denokv_timemachine = { version = "0.12.0", path = "./timemachine" } +denokv_proto = { version = "0.13.0", path = "./proto" } +denokv_sqlite = { version = "0.13.0", path = "./sqlite" } +denokv_remote = { version = "0.13.0", path = "./remote" } +denokv_timemachine = { version = "0.13.0", path = "./timemachine" } anyhow = "1" async-stream = "0.3" @@ -39,7 +39,7 @@ prost = "0.13" prost-build = "0.13" rand = "0.8.5" reqwest = { version = "0.12.4", default-features = false, features = ["json", "stream"] } -rusqlite = "0.34.0" +rusqlite = "0.37.0" serde = { version = "1", features = ["derive"] } serde_json = "1.0.107" tempfile = "3" diff --git a/denokv/Cargo.toml b/denokv/Cargo.toml index cf7b80f..e4ae1c6 100644 --- a/denokv/Cargo.toml +++ b/denokv/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "denokv" -version = "0.12.0" +version = "0.13.0" description = "A self-hosted backend for Deno KV" edition.workspace = true license.workspace = true diff --git a/npm/napi/Cargo.toml b/npm/napi/Cargo.toml index f6d7ede..0c8ac61 100644 --- a/npm/napi/Cargo.toml +++ b/npm/napi/Cargo.toml @@ -21,7 +21,7 @@ tokio = { version = "1.33.0", features = ["full"] } anyhow = "1" prost = "0.13" once_cell = "1.18.0" -rusqlite = { version = "0.34.0", features = ["bundled"] } +rusqlite = { version = "0.37.0", features = ["bundled"] } deno_error = "0.7.0" [build-dependencies] diff --git a/proto/Cargo.toml b/proto/Cargo.toml index a3d1480..c50a220 100644 --- a/proto/Cargo.toml +++ b/proto/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "denokv_proto" description = "Fundamental types, traits, and protobuf models for denokv" -version = "0.12.0" +version = "0.13.0" edition.workspace = true license.workspace = true repository.workspace = true diff --git a/remote/Cargo.toml b/remote/Cargo.toml index b6d7ad6..ae004da 100644 --- a/remote/Cargo.toml +++ b/remote/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "denokv_remote" description = "Remote (KV Connect) backend for Deno KV" -version = "0.12.0" +version = "0.13.0" edition.workspace = true license.workspace = true repository.workspace = true diff --git a/rust-toolchain.toml b/rust-toolchain.toml index d092944..7855e6d 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.86.0" +channel = "1.88.0" components = ["rustfmt", "clippy"] diff --git a/sqlite/Cargo.toml b/sqlite/Cargo.toml index 9ef749b..b58b5d2 100644 --- a/sqlite/Cargo.toml +++ b/sqlite/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "denokv_sqlite" description = "SQLite storage backend for Deno KV" -version = "0.12.0" +version = "0.13.0" edition.workspace = true license.workspace = true repository.workspace = true diff --git a/sqlite/backend.rs b/sqlite/backend.rs index c09cff1..f8638c2 100644 --- a/sqlite/backend.rs +++ b/sqlite/backend.rs @@ -24,7 +24,6 @@ use num_bigint::BigInt; use rand::Rng; use rand::RngCore; use rusqlite::params; -use rusqlite::DatabaseName; use rusqlite::OptionalExtension; use rusqlite::Transaction; use thiserror::Error; @@ -184,7 +183,7 @@ impl SqliteBackend { rng: Box, force_readonly: bool, ) -> Result { - let readonly = force_readonly || conn.is_readonly(DatabaseName::Main)?; + let readonly = force_readonly || conn.is_readonly("main")?; let mut this = Self { conn, rng, diff --git a/timemachine/Cargo.toml b/timemachine/Cargo.toml index 1d15fae..11a7349 100644 --- a/timemachine/Cargo.toml +++ b/timemachine/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "denokv_timemachine" description = "Point-in-time recovery tool for Deno KV" -version = "0.12.0" +version = "0.13.0" edition.workspace = true license.workspace = true repository.workspace = true