From 4160bbe6def51f663ed8c8685618b86d09720222 Mon Sep 17 00:00:00 2001 From: tottoto Date: Wed, 8 Oct 2025 23:19:41 +0900 Subject: [PATCH] examples: Update to thiserror 2 (#3522) --- Cargo.lock | 4 ++-- examples/customize-extractor-error/Cargo.toml | 2 +- examples/validator/Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 16d234fc..b3ad2c2f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1403,7 +1403,7 @@ dependencies = [ "axum-extra", "serde", "serde_json", - "thiserror 1.0.69", + "thiserror 2.0.9", "tokio", "tracing", "tracing-subscriber", @@ -1963,7 +1963,7 @@ dependencies = [ "axum", "http-body-util", "serde", - "thiserror 1.0.69", + "thiserror 2.0.9", "tokio", "tower", "tracing", diff --git a/examples/customize-extractor-error/Cargo.toml b/examples/customize-extractor-error/Cargo.toml index 5f406232..26288c4a 100644 --- a/examples/customize-extractor-error/Cargo.toml +++ b/examples/customize-extractor-error/Cargo.toml @@ -9,7 +9,7 @@ axum = { path = "../../axum", features = ["macros"] } axum-extra = { path = "../../axum-extra", features = ["with-rejection"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -thiserror = "1.0" +thiserror = "2" tokio = { version = "1.20", features = ["full"] } tracing = "0.1" tracing-subscriber = { version = "0.3", features = ["env-filter"] } diff --git a/examples/validator/Cargo.toml b/examples/validator/Cargo.toml index e7970958..24185e5c 100644 --- a/examples/validator/Cargo.toml +++ b/examples/validator/Cargo.toml @@ -7,7 +7,7 @@ version = "0.1.0" [dependencies] axum = { path = "../../axum" } serde = { version = "1.0", features = ["derive"] } -thiserror = "1.0.29" +thiserror = "2" tokio = { version = "1.0", features = ["full"] } tracing = "0.1" tracing-subscriber = { version = "0.3", features = ["env-filter"] }