From c183afacb016c95edc55b6e88398c7a8aa1bdccf Mon Sep 17 00:00:00 2001 From: Moritz Bischof Date: Sun, 1 Dec 2024 15:45:08 +0100 Subject: [PATCH] bump thiserror to v2 --- Cargo.lock | 26 +++++++++++++++++++++++--- ts-rs/Cargo.toml | 17 ++++++++--------- 2 files changed, 31 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5cc65cdf..44b0aa8b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -273,7 +273,7 @@ dependencies = [ "swc_ecma_parser", "swc_eq_ignore_macros", "text_lines", - "thiserror", + "thiserror 1.0.69", "unicode-width", "url", ] @@ -1307,7 +1307,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.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c006c85c7651b3cf2ada4584faa36773bd07bac24acfb39f3c431b36d7e667aa" +dependencies = [ + "thiserror-impl 2.0.3", ] [[package]] @@ -1321,6 +1330,17 @@ dependencies = [ "syn 2.0.90", ] +[[package]] +name = "thiserror-impl" +version = "2.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f077553d607adc1caf65430528a576c757a71ed73944b66ebb58ef2bbd243568" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + [[package]] name = "time" version = "0.3.36" @@ -1430,7 +1450,7 @@ dependencies = [ "serde", "serde_json", "smol_str", - "thiserror", + "thiserror 2.0.3", "tokio", "ts-rs-macros", "url", diff --git a/ts-rs/Cargo.toml b/ts-rs/Cargo.toml index 04fb3668..85d00d48 100644 --- a/ts-rs/Cargo.toml +++ b/ts-rs/Cargo.toml @@ -9,10 +9,10 @@ homepage = "https://github.com/Aleph-Alpha/ts-rs" repository = "https://github.com/Aleph-Alpha/ts-rs" keywords = ["typescript", "ts", "bindings", "ts-rs", "wasm"] categories = [ - "development-tools::ffi", - "development-tools::build-utils", - "wasm", - "web-programming", + "development-tools::ffi", + "development-tools::build-utils", + "wasm", + "web-programming", ] readme = "../README.md" rust-version = "1.63.0" @@ -44,20 +44,19 @@ chrono = { version = "0.4", features = ["serde"] } tokio = { version = "1.40", features = ["sync", "rt"] } [dependencies] -heapless = { version = ">= 0.7, < 0.9", optional = true } ts-rs-macros = { version = "=10.1.0", path = "../macros" } +thiserror = "2" + +heapless = { version = ">= 0.7, < 0.9", optional = true } dprint-plugin-typescript = { version = "0.90", optional = true } chrono = { version = "0.4", optional = true } -bigdecimal = { version = ">= 0.0.13, < 0.5", features = [ - "serde", -], optional = true } +bigdecimal = { version = ">= 0.0.13, < 0.5", features = ["serde"], optional = true } uuid = { version = "1", optional = true } bson = { version = "2", optional = true } bytes = { version = "1", optional = true } url = { version = "2", optional = true } semver = { version = "1", optional = true } smol_str = { version = "0.3", optional = true } -thiserror = "1" indexmap = { version = "2", optional = true } ordered-float = { version = ">= 3, < 5", optional = true } serde_json = { version = "1", optional = true }