Commit a8fd7c8
committed
chore: update rusqlite and tokio-rusqlite-new
Rusqlite changelog: https://github.com/rusqlite/rusqlite/releases/tag/v0.36.0
tokio-rusqlite-new diffs (looks fine):
```
diff -r -u --color=auto -x Cargo.lock ~/.cargo/registry/src/index.crates.io-*/tokio-rusqlite-new-0.{9.0/,10.0/}
```
```diff
diff -r -u '--color=auto' -x Cargo.lock /home/cj/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-rusqlite-new-0.9.0/.cargo_vcs_info.json /home/cj/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-rusqlite-new-0.10.0/.cargo_vcs_info.json
--- /home/cj/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-rusqlite-new-0.9.0/.cargo_vcs_info.json 1970-01-01 00:00:01.000000000 +0000
+++ /home/cj/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-rusqlite-new-0.10.0/.cargo_vcs_info.json 1970-01-01 00:00:01.000000000 +0000
@@ -1,6 +1,6 @@
{
"git": {
- "sha1": "bf9def984c91f8375be376e946f4ee007e368d84"
+ "sha1": "b9ca28fc65d9547f3e11fa09e3033a49ca2009cf"
},
"path_in_vcs": ""
}
\ No newline at end of file
diff -r -u '--color=auto' -x Cargo.lock /home/cj/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-rusqlite-new-0.9.0/CHANGELOG.md /home/cj/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-rusqlite-new-0.10.0/CHANGELOG.md
--- /home/cj/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-rusqlite-new-0.9.0/CHANGELOG.md 2006-07-24 01:21:28.000000000 +0000
+++ /home/cj/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-rusqlite-new-0.10.0/CHANGELOG.md 2006-07-24 01:21:28.000000000 +0000
@@ -8,6 +8,10 @@
Nothing.
+# 0.10.0 (27 May 2025)
+
+- **updated:** To latest [rusqlite] version (`0.36`).
+
# 0.9.0 (21 Apr 2025)
- **updated:** To latest [rusqlite] version (`0.35`).
diff -r -u '--color=auto' -x Cargo.lock /home/cj/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-rusqlite-new-0.9.0/Cargo.toml /home/cj/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-rusqlite-new-0.10.0/Cargo.toml
--- /home/cj/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-rusqlite-new-0.9.0/Cargo.toml 1970-01-01 00:00:01.000000000 +0000
+++ /home/cj/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-rusqlite-new-0.10.0/Cargo.toml 1970-01-01 00:00:01.000000000 +0000
@@ -12,7 +12,7 @@
[package]
edition = "2021"
name = "tokio-rusqlite-new"
-version = "0.9.0"
+version = "0.10.0"
authors = [
"xuxiaocheng <[email protected]>",
"Programatik <[email protected]>",
@@ -62,18 +62,18 @@
version = "~0.5"
[dependencies.rusqlite]
-version = "~0.35"
+version = "~0.36"
[dependencies.tokio]
-version = "^1.44"
+version = "^1.45"
features = ["sync"]
[dev-dependencies.rusqlite]
-version = "~0.35"
+version = "~0.36"
features = ["bundled"]
[dev-dependencies.tokio]
-version = "^1.44"
+version = "^1.45"
features = [
"rt-multi-thread",
"macros",
diff -r -u '--color=auto' -x Cargo.lock /home/cj/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-rusqlite-new-0.9.0/Cargo.toml.orig /home/cj/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-rusqlite-new-0.10.0/Cargo.toml.orig
--- /home/cj/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-rusqlite-new-0.9.0/Cargo.toml.orig2006-07-24 01:21:28.000000000 +0000
+++ /home/cj/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-rusqlite-new-0.10.0/Cargo.toml.orig 2006-07-24 01:21:28.000000000 +0000
@@ -1,6 +1,6 @@
[package]
name = "tokio-rusqlite-new"
-version = "0.9.0"
+version = "0.10.0"
authors = ["xuxiaocheng <[email protected]>", "Programatik <[email protected]>", "Adi Salimgereev <[email protected]>"]
edition = "2021"
description = "Asynchronous handle for rusqlite library."
@@ -15,12 +15,12 @@
[dependencies]
crossbeam-channel = "~0.5"
-rusqlite = "~0.35"
-tokio = { version = "^1.44", features = ["sync"] }
+rusqlite = "~0.36"
+tokio = { version = "^1.45", features = ["sync"] }
[dev-dependencies]
-rusqlite = { version = "~0.35", features = ["bundled"] }
-tokio = { version = "^1.44", features = ["rt-multi-thread", "macros"] }
+rusqlite = { version = "~0.36", features = ["bundled"] }
+tokio = { version = "^1.45", features = ["rt-multi-thread", "macros"] }
[[test]]
name = "tests"
diff -r -u '--color=auto' -x Cargo.lock /home/cj/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-rusqlite-new-0.9.0/src/lib.rs /home/cj/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-rusqlite-new-0.10.0/src/lib.rs
--- /home/cj/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-rusqlite-new-0.9.0/src/lib.rs 2006-07-24 01:21:28.000000000 +0000
+++ /home/cj/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-rusqlite-new-0.10.0/src/lib.rs 2006-07-24 01:21:28.000000000 +0000
@@ -166,7 +166,7 @@
}
use std::path::Path;
-use rusqlite::OpenFlags;
+use rusqlite::{Name, OpenFlags};
async fn start<F>(open: F) -> Result<Connection>
where
@@ -239,10 +239,10 @@
///
/// Will return `Err` if either `path` or `vfs` cannot be converted to a
/// C-compatible string or if the underlying SQLite open call fails.
- pub async fn open_with_flags_and_vfs<P: AsRef<Path>>(path: P, flags: OpenFlags, vfs: &str) -> Result<Self> {
+ pub async fn open_with_flags_and_vfs<P: AsRef<Path>>(path: P, flags: OpenFlags, vfs: impl Name) -> Result<Self> {
let path = path.as_ref().to_owned();
- let vfs = vfs.to_owned();
- start(move || rusqlite::Connection::open_with_flags_and_vfs(path, flags, &vfs)).await
+ let vfs = vfs.as_cstr()?.to_owned();
+ start(move || rusqlite::Connection::open_with_flags_and_vfs(path, flags, vfs.as_c_str())).await
}
/// Open a new connection to an in-memory SQLite database.
@@ -267,8 +267,8 @@
///
/// Will return `Err` if `vfs` cannot be converted to a C-compatible
/// string or if the underlying SQLite open call fails.
- pub async fn open_in_memory_with_flags_and_vfs(flags: OpenFlags, vfs: &str) -> Result<Self> {
- let vfs = vfs.to_owned();
- start(move || rusqlite::Connection::open_in_memory_with_flags_and_vfs(flags, &vfs)).await
+ pub async fn open_in_memory_with_flags_and_vfs(flags: OpenFlags, vfs: impl Name) -> Result<Self> {
+ let vfs = vfs.as_cstr()?.to_owned();
+ start(move || rusqlite::Connection::open_in_memory_with_flags_and_vfs(flags, vfs.as_c_str())).await
}
}
```1 parent 840eabf commit a8fd7c8
File tree
8 files changed
+33
-15
lines changed- examples
- async
- from-directory
- simple
- rusqlite_migration_tests
- rusqlite_migration
8 files changed
+33
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
20 | 38 | | |
21 | 39 | | |
22 | 40 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments