Update to thiserror 2

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1583>
This commit is contained in:
Sebastian Dröge 2024-11-06 10:38:33 +02:00
parent 79440636c2
commit a38ad3451f
5 changed files with 36 additions and 16 deletions

44
Cargo.lock generated
View file

@ -39,7 +39,7 @@ dependencies = [
"ndk-context", "ndk-context",
"ndk-sys", "ndk-sys",
"num_enum", "num_enum",
"thiserror", "thiserror 1.0.66",
] ]
[[package]] [[package]]
@ -198,7 +198,7 @@ dependencies = [
"polling", "polling",
"rustix", "rustix",
"slab", "slab",
"thiserror", "thiserror 1.0.66",
] ]
[[package]] [[package]]
@ -897,7 +897,7 @@ dependencies = [
"serde_bytes", "serde_bytes",
"serde_json", "serde_json",
"smallvec", "smallvec",
"thiserror", "thiserror 2.0.0",
] ]
[[package]] [[package]]
@ -1273,7 +1273,7 @@ dependencies = [
"libc", "libc",
"serde", "serde",
"serde_json", "serde_json",
"thiserror", "thiserror 2.0.0",
] ]
[[package]] [[package]]
@ -1497,7 +1497,7 @@ dependencies = [
"gstreamer", "gstreamer",
"gstreamer-app", "gstreamer-app",
"gstreamer-video", "gstreamer-video",
"thiserror", "thiserror 2.0.0",
] ]
[[package]] [[package]]
@ -1542,7 +1542,7 @@ dependencies = [
"libc", "libc",
"serde", "serde",
"serde_json", "serde_json",
"thiserror", "thiserror 2.0.0",
] ]
[[package]] [[package]]
@ -1663,7 +1663,7 @@ dependencies = [
"combine", "combine",
"jni-sys", "jni-sys",
"log", "log",
"thiserror", "thiserror 1.0.66",
"walkdir", "walkdir",
"windows-sys 0.45.0", "windows-sys 0.45.0",
] ]
@ -1815,7 +1815,7 @@ dependencies = [
"ndk-sys", "ndk-sys",
"num_enum", "num_enum",
"raw-window-handle", "raw-window-handle",
"thiserror", "thiserror 1.0.66",
] ]
[[package]] [[package]]
@ -2272,7 +2272,7 @@ dependencies = [
"log", "log",
"memmap2", "memmap2",
"rustix", "rustix",
"thiserror", "thiserror 1.0.66",
"wayland-backend", "wayland-backend",
"wayland-client", "wayland-client",
"wayland-csd-frame", "wayland-csd-frame",
@ -2294,9 +2294,9 @@ dependencies = [
[[package]] [[package]]
name = "syn" name = "syn"
version = "2.0.86" version = "2.0.87"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e89275301d38033efb81a6e60e3497e734dfcc62571f2854bf4b16690398824c" checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",
@ -2353,7 +2353,16 @@ version = "1.0.66"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5d171f59dbaa811dbbb1aee1e73db92ec2b122911a48e1390dfe327a821ddede" checksum = "5d171f59dbaa811dbbb1aee1e73db92ec2b122911a48e1390dfe327a821ddede"
dependencies = [ dependencies = [
"thiserror-impl", "thiserror-impl 1.0.66",
]
[[package]]
name = "thiserror"
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "15291287e9bff1bc6f9ff3409ed9af665bec7a5fc8ac079ea96be07bca0e2668"
dependencies = [
"thiserror-impl 2.0.0",
] ]
[[package]] [[package]]
@ -2367,6 +2376,17 @@ dependencies = [
"syn", "syn",
] ]
[[package]]
name = "thiserror-impl"
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "22efd00f33f93fa62848a7cab956c3d38c8d43095efda1decfc2b3a5dc0b8972"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]] [[package]]
name = "toml" name = "toml"
version = "0.8.19" version = "0.8.19"

View file

@ -20,7 +20,7 @@ glib.workspace = true
gst.workspace = true gst.workspace = true
gst-video.workspace = true gst-video.workspace = true
gst-audio.workspace = true gst-audio.workspace = true
thiserror = "1.0" thiserror = "2"
serde = { version = "1.0", optional = true } serde = { version = "1.0", optional = true }
[dev-dependencies] [dev-dependencies]

View file

@ -19,7 +19,7 @@ rust-version.workspace = true
gst = { workspace = true, features = ["v1_20"] } gst = { workspace = true, features = ["v1_20"] }
gst-app = { workspace = true, features = ["v1_20"] } gst-app = { workspace = true, features = ["v1_20"] }
gst-video = { workspace = true, features = ["v1_20"] } gst-video = { workspace = true, features = ["v1_20"] }
thiserror = "1" thiserror = "2"
[dev-dependencies] [dev-dependencies]
futures = { version = "0.3", features = ["executor"] } futures = { version = "0.3", features = ["executor"] }

View file

@ -23,7 +23,7 @@ gst.workspace = true
gst-base.workspace = true gst-base.workspace = true
futures-channel = "0.3" futures-channel = "0.3"
serde = { version = "1.0", optional = true, features = ["derive"] } serde = { version = "1.0", optional = true, features = ["derive"] }
thiserror = "1.0.49" thiserror = "2"
[dev-dependencies] [dev-dependencies]
itertools = "0.13" itertools = "0.13"

View file

@ -29,7 +29,7 @@ opt-ops = { package = "option-operations", version = "0.5" }
serde = { version = "1.0", optional = true, features = ["derive"] } serde = { version = "1.0", optional = true, features = ["derive"] }
serde_bytes = { version = "0.11", optional = true } serde_bytes = { version = "0.11", optional = true }
paste = "1.0" paste = "1.0"
thiserror = "1" thiserror = "2"
smallvec = { version = "1.0", features = ["write"] } smallvec = { version = "1.0", features = ["write"] }
itertools = "0.13" itertools = "0.13"
pin-project-lite = "0.2" pin-project-lite = "0.2"