Skip to content

Commit b284358

Browse files
chore(deps) Update Rust crate thiserror to v2 (dev) (#11604)
* chore(deps) Update Rust crate thiserror to v2 * thiserror v2 on all crates --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Lucas Nogueira <[email protected]>
1 parent 229d7f8 commit b284358

File tree

9 files changed

+85
-65
lines changed

9 files changed

+85
-65
lines changed

Cargo.lock

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

crates/tauri-bundler/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ tauri-utils = { version = "2.0.2", path = "../tauri-utils", features = [
2121
image = "0.25.0"
2222
flate2 = "1.0"
2323
anyhow = "1.0"
24-
thiserror = "1.0"
24+
thiserror = "2"
2525
serde_json = "1.0"
2626
serde = { version = "1.0", features = ["derive"] }
2727
strsim = "0.11.0"

crates/tauri-cli/templates/plugin/Cargo.crate-manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ links = "tauri-plugin-{{ plugin_name }}"
1111
[dependencies]
1212
tauri = {{ tauri_dep }}
1313
serde = "1.0"
14-
thiserror = "1.0"
14+
thiserror = "2"
1515

1616
[build-dependencies]
1717
tauri-plugin = {{{ tauri_plugin_dep }}}

crates/tauri-codegen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ serde_json = "1"
2323
tauri-utils = { version = "2.0.2", path = "../tauri-utils", features = [
2424
"build",
2525
] }
26-
thiserror = "1"
26+
thiserror = "2"
2727
walkdir = "2"
2828
brotli = { version = "7", optional = true, default-features = false, features = [
2929
"std",

crates/tauri-runtime/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ targets = [
2828
[dependencies]
2929
serde = { version = "1.0", features = ["derive"] }
3030
serde_json = "1.0"
31-
thiserror = "1.0"
31+
thiserror = "2"
3232
tauri-utils = { version = "2.0.2", path = "../tauri-utils" }
3333
http = "1.1"
3434
raw-window-handle = "0.6"

crates/tauri-utils/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ rust-version.workspace = true
1515
[dependencies]
1616
serde = { version = "1", features = ["derive"] }
1717
serde_json = "1"
18-
thiserror = "1"
18+
thiserror = "2"
1919
phf = { version = "0.11", features = ["macros"] }
2020
brotli = { version = "7", optional = true, default-features = false, features = [
2121
"std",

crates/tauri-utils/src/acl/identifier.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pub enum ParseIdentifierError {
122122
Empty,
123123

124124
/// Identifier is too long.
125-
#[error("identifiers cannot be longer than {}, found {0}", MAX_LEN_IDENTIFIER)]
125+
#[error("identifiers cannot be longer than {len}, found {0}", len = MAX_LEN_IDENTIFIER)]
126126
Humongous(usize),
127127

128128
/// Identifier is not in a valid format.

crates/tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ futures-util = "0.3"
5656
uuid = { version = "1", features = ["v4"], optional = true }
5757
url = "2"
5858
anyhow = "1.0"
59-
thiserror = "1.0"
59+
thiserror = "2"
6060
tauri-runtime = { version = "2.1.1", path = "../tauri-runtime" }
6161
tauri-macros = { version = "2.0.2", path = "../tauri-macros" }
6262
tauri-utils = { version = "2.0.2", features = [

examples/api/src-tauri/tauri-plugin-sample/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ links = "tauri-plugin-sample"
88
tauri = { path = "../../../../crates/tauri" }
99
log = "0.4"
1010
serde = "1"
11-
thiserror = "1"
11+
thiserror = "2"
1212

1313
[build-dependencies]
1414
tauri-plugin = { path = "../../../../crates/tauri-plugin", features = [

0 commit comments

Comments
 (0)