Update to thiserror 2

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1618>
This commit is contained in:
Sebastian Dröge 2024-11-06 10:38:33 +02:00
parent 7184e67d80
commit 23a2e2003b
5 changed files with 38 additions and 18 deletions

48
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.8",
] ]
[[package]] [[package]]
@ -1276,7 +1276,7 @@ dependencies = [
"libc", "libc",
"serde", "serde",
"serde_json", "serde_json",
"thiserror", "thiserror 2.0.8",
] ]
[[package]] [[package]]
@ -1501,7 +1501,7 @@ dependencies = [
"gstreamer-app", "gstreamer-app",
"gstreamer-video", "gstreamer-video",
"once_cell", "once_cell",
"thiserror", "thiserror 2.0.8",
] ]
[[package]] [[package]]
@ -1547,7 +1547,7 @@ dependencies = [
"once_cell", "once_cell",
"serde", "serde",
"serde_json", "serde_json",
"thiserror", "thiserror 2.0.8",
] ]
[[package]] [[package]]
@ -1668,7 +1668,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",
] ]
@ -1820,7 +1820,7 @@ dependencies = [
"ndk-sys", "ndk-sys",
"num_enum", "num_enum",
"raw-window-handle", "raw-window-handle",
"thiserror", "thiserror 1.0.66",
] ]
[[package]] [[package]]
@ -2070,9 +2070,9 @@ dependencies = [
[[package]] [[package]]
name = "proc-macro2" name = "proc-macro2"
version = "1.0.89" version = "1.0.92"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e" checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0"
dependencies = [ dependencies = [
"unicode-ident", "unicode-ident",
] ]
@ -2292,7 +2292,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",
@ -2314,9 +2314,9 @@ dependencies = [
[[package]] [[package]]
name = "syn" name = "syn"
version = "2.0.86" version = "2.0.90"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e89275301d38033efb81a6e60e3497e734dfcc62571f2854bf4b16690398824c" checksum = "919d3b74a5dd0ccd15aeb8f93e7006bd9e14c295087c9896a110f490752bcf31"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",
@ -2373,7 +2373,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.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08f5383f3e0071702bf93ab5ee99b52d26936be9dedd9413067cbdcddcb6141a"
dependencies = [
"thiserror-impl 2.0.8",
] ]
[[package]] [[package]]
@ -2387,6 +2396,17 @@ dependencies = [
"syn", "syn",
] ]
[[package]]
name = "thiserror-impl"
version = "2.0.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f2f357fcec90b3caef6623a099691be676d033b40a058ac95d2a6ade6fa0c943"
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

@ -20,7 +20,7 @@ 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"] }
once_cell = "1" once_cell = "1"
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"
once_cell = "1" once_cell = "1"
[dev-dependencies] [dev-dependencies]

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"