From 3310c2909ed89a163dfcadc7d52cd14233bd7f94 Mon Sep 17 00:00:00 2001 From: Eval EXEC Date: Sat, 1 Mar 2025 15:19:00 +0800 Subject: [PATCH] Upgrade ckb_schemar to rust 2024 --- Cargo.toml | 2 ++ devtools/doc/rpc-gen/Cargo.toml | 2 +- rpc/Cargo.toml | 3 +-- util/fixed-hash/core/Cargo.toml | 2 +- util/jsonrpc-types/Cargo.toml | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9f65e6fd61..112ea03a7a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -100,6 +100,8 @@ members = [ [workspace.dependencies] tempfile = "3" itertools = "0.11.0" +# issue tracking: https://github.com/GREsau/schemars/pull/251 +schemars = { version = "0.8.19", package = "ckb_schemars" } [profile.release] overflow-checks = true diff --git a/devtools/doc/rpc-gen/Cargo.toml b/devtools/doc/rpc-gen/Cargo.toml index 9b5c8b3ef1..a32c4a7d83 100644 --- a/devtools/doc/rpc-gen/Cargo.toml +++ b/devtools/doc/rpc-gen/Cargo.toml @@ -10,7 +10,7 @@ repository = "https://github.com/nervosnetwork/ckb" [dependencies] ckb-rpc ={ path = "../../../rpc", version = "= 0.200.0-pre" } -schemars = { version = "0.8.19", package = "ckb_schemars" } +schemars.workspace = true serde_json = "~1.0" tera = "1" syn = { version = "2.0.39", features = ["extra-traits", "full", "parsing", "visit"] } diff --git a/rpc/Cargo.toml b/rpc/Cargo.toml index fc8ce7b102..a91861a29c 100644 --- a/rpc/Cargo.toml +++ b/rpc/Cargo.toml @@ -50,8 +50,7 @@ futures-util = { version = "0.3.21" } tower-http = { version = "0.6", features = ["timeout", "cors"] } async-stream = "0.3.3" ckb-async-runtime = { path = "../util/runtime", version = "= 0.200.0-pre" } -# issue tracking: https://github.com/GREsau/schemars/pull/251 -schemars = { version = "0.8.19", package = "ckb_schemars" } +schemars.workspace = true [dev-dependencies] reqwest = { version = "0.12", features = ["blocking", "json"] } diff --git a/util/fixed-hash/core/Cargo.toml b/util/fixed-hash/core/Cargo.toml index 379408d5be..1667b9c3f4 100644 --- a/util/fixed-hash/core/Cargo.toml +++ b/util/fixed-hash/core/Cargo.toml @@ -12,7 +12,7 @@ repository = "https://github.com/nervosnetwork/ckb" thiserror = "1.0.22" serde = { version = "1.0", features = ["derive"] } faster-hex = "0.6" -schemars = { version = "0.8.19", package = "ckb_schemars" } +schemars.workspace = true [dev-dependencies] diff --git a/util/jsonrpc-types/Cargo.toml b/util/jsonrpc-types/Cargo.toml index 92eea54ece..1cfe8d138c 100644 --- a/util/jsonrpc-types/Cargo.toml +++ b/util/jsonrpc-types/Cargo.toml @@ -13,7 +13,7 @@ ckb-types = { path = "../types", version = "= 0.200.0-pre" } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" faster-hex = "0.6" -schemars = { version = "0.8.19", package = "ckb_schemars" } +schemars.workspace = true [dev-dependencies]