Files
tauri-plugins-workspace/plugins/sql/Cargo.toml
T
Lucas Fernandes NogueiraandFabian-Lars a83704743c fix(sql): update sqlx to 0.9 to fix cargo audit (#3815)
* fix(sql): update sqlx to 0.9 to fix cargo audit

cargo audit fails on RUSTSEC-2026-0459: the SQLite bundled by
libsqlite3-sys 0.30 is affected by CVE-2026-119375. Only sqlx 0.9.1
accepts the fixed libsqlite3-sys (>=0.39), and it requires Rust 1.94.

- update sqlx to 0.9.1 and libsqlite3-sys to 0.40. The removed
  runtime-tokio-rustls feature is replaced by runtime-tokio +
  tls-rustls-ring-webpki, which is what it enabled before, and mysql
  now enables mysql-rsa to keep RSA password auth
- wrap frontend-provided queries in AssertSqlSafe (values are still
  bound parameters) and convert migrations with into_sql_str
- bump the workspace MSRV and CI toolchains to 1.94
- ignore RUSTSEC-2026-0387 (crypto-bigint timing), which stronghold
  pulls in through iota-crypto -> k256 0.13 with no fixed release

Tested clippy, tests and doc tests of the sql plugin on Linux with
the sqlite, mysql and postgres features, on 1.94 and stable. Not
tested against real MySQL/Postgres servers or on mobile.

* update change file [skip ci]

* Update .changes/sql-sqlx-0.9.md [skip ci]

Co-authored-by: Fabian-Lars <30730186+FabianLars@users.noreply.github.com>

* update change file [skip ci]

---------

Co-authored-by: Fabian-Lars <30730186+FabianLars@users.noreply.github.com>
2026-11-28 06:47:11 -03:00

60 lines
1.4 KiB
TOML

[package]
name = "tauri-plugin-sql"
version = "2.6.0"
description = "Interface with SQL databases."
authors = { workspace = true }
license = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }
repository = { workspace = true }
links = "tauri-plugin-sql"
exclude = [
"/banner.png",
"/guest-js",
"/package.json",
"/rollup.config.js",
"/tsconfig.json",
]
[package.metadata.docs.rs]
features = ["sqlite"]
[package.metadata.platforms.support]
windows = { level = "full", notes = "" }
linux = { level = "full", notes = "" }
macos = { level = "full", notes = "" }
android = { level = "full", notes = "" }
ios = { level = "full", notes = "" }
[build-dependencies]
tauri-plugin = { workspace = true, features = ["build"] }
[dependencies]
serde = { workspace = true }
serde_json = { workspace = true }
tauri = { workspace = true }
log = { workspace = true }
thiserror = { workspace = true }
futures-core = "0.3"
sqlx = { version = "0.9.1", features = [
"json",
"time",
"uuid",
"rust_decimal",
] }
rust_decimal = "1"
time = "0.3"
tokio = { version = "1", features = ["sync"] }
indexmap = { version = "2", features = ["serde"] }
uuid = "1"
[features]
sqlite = ["sqlx/sqlite", "sqlx/runtime-tokio"]
mysql = ["sqlx/mysql-rsa", "sqlx/runtime-tokio", "sqlx/tls-rustls-ring-webpki"]
postgres = [
"sqlx/postgres",
"sqlx/runtime-tokio",
"sqlx/tls-rustls-ring-webpki",
]
# TODO: bundled-cipher etc