Skip to content

Commit a8fd7c8

Browse files
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

8 files changed

+33
-15
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@ end_insert -->
1717
Release notes for the [rusqlite_migration library](https://cj.rs/rusqlite_migration).
1818
end_insert -->
1919

20+
## Version 2.2.0 Beta 1
21+
22+
### Features
23+
24+
- Implement the `Display` trait for `M`. This makes it easier to print errors pertaining to a particular migration (this feature is planned for the future, in the context of more extensive migration checks)
25+
26+
### Dependencies
27+
28+
Rusqlite was updated from 0.35.0 to 0.36.0.
29+
Please see [the release notes for 0.36.0](https://github.com/rusqlite/rusqlite/releases/tag/v0.36.0).
30+
31+
### Other
32+
33+
- Update development dependencies
34+
- Improve tests to cover more cases, in particular around downward migrations
35+
- Add docs.rs link to Cargo metadata
36+
- Fix clippy warning in rust 1.87.0
37+
2038
## Version 2.1.0
2139

2240
### Dependencies

Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license = "Apache-2.0"
88
repository = "https://github.com/cljoly/rusqlite_migration"
99
documentation = "https://docs.rs/rusqlite_migration/"
1010
rust-version = "1.84"
11-
version = "2.1.0"
11+
version = "2.2.0-beta.1"
1212

1313
[workspace]
1414
members = [

examples/async/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ simple-logging = "2.0.2"
1010
env_logger = "0.11"
1111
anyhow = "1"
1212
mktemp = "0.5"
13-
tokio-rusqlite-new = "=0.9.0"
13+
tokio-rusqlite-new = "=0.10.0"
1414
tokio = { version = "1.45.1", features = ["full"] }
1515

1616
[dependencies.rusqlite_migration]
1717
path = "../../rusqlite_migration"
1818

1919
[dependencies.rusqlite]
20-
version = "0.35.0"
20+
version = "0.36.0"
2121
default-features = false
2222
features = []

examples/from-directory/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ path = "../../rusqlite_migration"
1717
features = ["from-directory"]
1818

1919
[dependencies.rusqlite]
20-
version = "0.35.0"
20+
version = "0.36.0"
2121
default-features = false
2222
features = []

examples/simple/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ anyhow = "1"
1313
mktemp = "0.5"
1414

1515
[dependencies.rusqlite]
16-
version = "0.35.0"
16+
version = "0.36.0"
1717
features = ["extra_check"] # A realistic use case

rusqlite_migration/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ include_dir = { version = "0.7.4", optional = true }
3434
log = "0.4"
3535

3636
[dependencies.rusqlite]
37-
version = "0.35.0"
37+
version = "0.36.0"
3838
default-features = false
3939
features = []
4040

rusqlite_migration_tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ path = "../rusqlite_migration"
2222
features = ["from-directory"]
2323

2424
[dependencies.rusqlite]
25-
version = "0.35.0"
25+
version = "0.36.0"
2626
features = ["extra_check"]
2727

2828
[dev-dependencies]

0 commit comments

Comments
 (0)