Skip to content

Commit 37cb9a6

Browse files
fix(deps): update rust crate sqlx to 0.8 (v2) (#1575)
* fix(deps): update rust crate sqlx to 0.8 * fix build --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: FabianLars <[email protected]>
1 parent 725ff42 commit 37cb9a6

File tree

5 files changed

+48
-50
lines changed

5 files changed

+48
-50
lines changed

.changes/sql-update-sqlx-0-8.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
sql: patch
3+
---
4+
5+
Update sqlx to 0.8 - Check out their changelog for behavior changes: https://github.com/launchbadge/sqlx/blob/main/CHANGELOG.md#080---2024-07-22

Cargo.lock

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

plugins/deep-link/src/lib.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use serde::de::DeserializeOwned;
66
use tauri::{
77
plugin::{Builder, PluginApi, TauriPlugin},
8-
AppHandle, Emitter, Manager, Runtime,
8+
AppHandle, Manager, Runtime,
99
};
1010

1111
mod commands;
@@ -23,7 +23,10 @@ fn init_deep_link<R: Runtime, C: DeserializeOwned>(
2323
) -> crate::Result<DeepLink<R>> {
2424
#[cfg(target_os = "android")]
2525
{
26-
use tauri::ipc::{Channel, InvokeBody};
26+
use tauri::{
27+
ipc::{Channel, InvokeBody},
28+
Emitter,
29+
};
2730

2831
let handle = _api.register_android_plugin(PLUGIN_IDENTIFIER, "DeepLinkPlugin")?;
2932

@@ -388,6 +391,8 @@ pub fn init<R: Runtime>() -> TauriPlugin<R, Option<config::Config>> {
388391
.on_event(|_app, _event| {
389392
#[cfg(any(target_os = "macos", target_os = "ios"))]
390393
if let tauri::RunEvent::Opened { urls } = _event {
394+
use tauri::Emitter;
395+
391396
let _ = _app.emit("deep-link://new-url", urls);
392397
_app.state::<DeepLink<R>>()
393398
.current

plugins/sql/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ tauri = { workspace = true }
2424
log = { workspace = true }
2525
thiserror = { workspace = true }
2626
futures-core = "0.3"
27-
sqlx = { version = "0.7", features = [ "json", "time" ] }
27+
sqlx = { version = "0.8", features = [ "json", "time" ] }
2828
time = "0.3"
2929
tokio = { version = "1", features = [ "sync" ] }
3030
indexmap = { version = "2.2.6", features = [ "serde" ] }

plugins/sql/src/plugin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ impl MigrationSource<'static> for MigrationList {
135135
migration.description.into(),
136136
migration.kind.into(),
137137
migration.sql.into(),
138+
false,
138139
));
139140
}
140141
}

0 commit comments

Comments
 (0)