From 7b2ed36841b36136619094015634f375ffe22303 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sat, 18 Jan 2025 20:54:47 +0700 Subject: [PATCH] Update to `thiserror` 2.x from 1.x --- Cargo.lock | 48 ++++++++++++++++++++++++++++++++++-------------- Cargo.toml | 2 +- 2 files changed, 35 insertions(+), 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a8725be..e74b861 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -64,7 +64,7 @@ dependencies = [ "ndk-context", "ndk-sys", "num_enum", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -317,7 +317,7 @@ dependencies = [ "polling", "rustix", "slab", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -1032,7 +1032,7 @@ checksum = "fdd4240fc91d3433d5e5b0fc5b67672d771850dc19bbee03c1381e19322803d7" dependencies = [ "log", "presser", - "thiserror", + "thiserror 1.0.69", "winapi", "windows", ] @@ -1102,7 +1102,7 @@ dependencies = [ "com", "libc", "libloading", - "thiserror", + "thiserror 1.0.69", "widestring", "winapi", ] @@ -1416,7 +1416,7 @@ dependencies = [ "combine", "jni-sys", "log", - "thiserror", + "thiserror 1.0.69", "walkdir", "windows-sys 0.45.0", ] @@ -1654,7 +1654,7 @@ dependencies = [ "rustc-hash", "spirv", "termcolor", - "thiserror", + "thiserror 1.0.69", "unicode-xid", ] @@ -1670,7 +1670,7 @@ dependencies = [ "ndk-sys", "num_enum", "raw-window-handle", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -2398,7 +2398,7 @@ dependencies = [ "log", "memmap2", "rustix", - "thiserror", + "thiserror 1.0.69", "wayland-backend", "wayland-client", "wayland-csd-frame", @@ -2543,7 +2543,16 @@ version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" dependencies = [ - "thiserror-impl", + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d452f284b73e6d76dd36758a0c8684b1d5be31f92b89d07fd5822175732206fc" +dependencies = [ + "thiserror-impl 2.0.11", ] [[package]] @@ -2557,6 +2566,17 @@ dependencies = [ "syn 2.0.92", ] +[[package]] +name = "thiserror-impl" +version = "2.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26afc1baea8a989337eeb52b6e72a039780ce45c3edfcc9c5b9d112feeb173c2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.92", +] + [[package]] name = "thread_local" version = "1.1.8" @@ -2823,7 +2843,7 @@ dependencies = [ "raw-window-handle", "skrifa", "static_assertions", - "thiserror", + "thiserror 1.0.69", "vello_encoding", "vello_shaders", "wgpu", @@ -2850,7 +2870,7 @@ checksum = "07cad02d6f29f2212a6ee382a8fec6f9977d0cceefacf07f8e361607ffe3988d" dependencies = [ "bytemuck", "naga", - "thiserror", + "thiserror 1.0.69", "vello_encoding", ] @@ -2859,7 +2879,7 @@ name = "vello_svg" version = "0.5.0" dependencies = [ "image", - "thiserror", + "thiserror 2.0.11", "usvg", "vello", "wasm-bindgen-test", @@ -3315,7 +3335,7 @@ dependencies = [ "raw-window-handle", "rustc-hash", "smallvec", - "thiserror", + "thiserror 1.0.69", "wgpu-hal", "wgpu-types", ] @@ -3358,7 +3378,7 @@ dependencies = [ "renderdoc-sys", "rustc-hash", "smallvec", - "thiserror", + "thiserror 1.0.69", "wasm-bindgen", "web-sys", "wgpu-types", diff --git a/Cargo.toml b/Cargo.toml index c1897c8..b6fcf27 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -98,7 +98,7 @@ workspace = true [dependencies] vello = { workspace = true } -thiserror = "1.0.69" +thiserror = "2.0.11" usvg = "0.44.0" image = { version = "0.25.5", default-features = false, features = [ "webp", "png", "jpeg", "gif"], optional = true }