Skip to content

Commit 023321d

Browse files
committed
deps: make sync and serde_json be ckb workspace dependencies
1 parent 09df3ce commit 023321d

File tree

18 files changed

+22
-20
lines changed

18 files changed

+22
-20
lines changed

Cargo.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,14 @@ secp256k1 = "0.30"
266266
semver = "1.0"
267267
sentry = "0.34.0"
268268
serde = "1.0"
269+
serde_json = "1.0"
269270
serde_plain = "0.3.0"
270271
slab = "0.4"
271272
sled = "0.34.7"
272273
snap = "1"
273274
sql-builder = "3.1"
274275
sqlx = "0.8.2"
276+
syn = "2.0"
275277
tera = "1"
276278
thiserror = "1.0.22"
277279
time = "0.3.36"

ckb-bin/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repository = "https://github.com/nervosnetwork/ckb"
1111
[dependencies]
1212
clap = { workspace = true, features = ["string", "wrap_help"] }
1313
serde = { workspace = true, features = ["derive"] }
14-
serde_json = { version = "1.0" }
14+
serde_json.workspace = true
1515
serde_plain.workspace = true
1616
toml.workspace = true
1717
ckb-app-config.workspace = true

devtools/doc/rpc-gen/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ repository = "https://github.com/nervosnetwork/ckb"
1111
[dependencies]
1212
ckb-rpc ={ workspace = true }
1313
schemars.workspace = true
14-
serde_json = "~1.0"
14+
serde_json.workspace = true
1515
tera.workspace = true
16-
syn = { version = "2.0.39", features = ["extra-traits", "full", "parsing", "visit"] }
16+
syn = { workspace = true, features = ["extra-traits", "full", "parsing", "visit"] }
1717
walkdir.workspace = true
1818
proc-macro2.workspace = true

miner/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ckb-pow.workspace = true
1818
rand.workspace = true
1919
rand_distr.workspace = true
2020
serde = { workspace = true, features = ["derive"] }
21-
serde_json = "1.0"
21+
serde_json.workspace = true
2222
ckb-jsonrpc-types.workspace = true
2323
hyper = { workspace = true, features = ["client", "http2", "http1", "server"] }
2424
hyper-util = { workspace = true, features = ["server-auto", "server-graceful", "client-legacy"] }

network/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ hickory-resolver = { workspace = true, optional = true }
3030
snap.workspace = true
3131
ckb-types.workspace = true
3232
ipnetwork.workspace = true
33-
serde_json = "1.0"
33+
serde_json.workspace = true
3434
bloom-filters.workspace = true
3535
ckb-spawn.workspace = true
3636
bitflags.workspace = true

rpc/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ckb-network-alert.workspace = true
2323
ckb-app-config.workspace = true
2424
ckb-constant.workspace = true
2525
jsonrpc-core.workspace = true
26-
serde_json = "1.0"
26+
serde_json.workspace = true
2727
jsonrpc-utils = { workspace = true, features = ["server", "macros", "axum"] }
2828
ckb-jsonrpc-types.workspace = true
2929
ckb-verification.workspace = true

tx-pool/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ckb-channel.workspace = true
3636
ckb-db.workspace = true
3737
ckb-script.workspace = true
3838
sentry = { workspace = true, optional = true }
39-
serde_json = "1.0"
39+
serde_json.workspace = true
4040
rand.workspace = true
4141
hyper = { workspace = true, features = ["http1", "http2", "client"] }
4242
hyper-util = { workspace = true, features = ["client-legacy", "http1", "http2"] }

util/app-config/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repository = "https://github.com/nervosnetwork/ckb"
1010

1111
[dependencies]
1212
serde = { workspace = true, features = ["derive"] }
13-
serde_json = "1.0"
13+
serde_json.workspace = true
1414
toml.workspace = true
1515
path-clean.workspace = true
1616
ckb-logger.workspace = true

util/fixed-hash/core/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ schemars.workspace = true
1616

1717

1818
[dev-dependencies]
19-
serde_json = "1.0"
19+
serde_json.workspace = true

util/fixed-hash/macros/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ proc-macro = true
1414
[dependencies]
1515
ckb-fixed-hash-core.workspace = true
1616
quote.workspace = true
17-
syn = "1.0"
17+
syn.workspace = true
1818
proc-macro2.workspace = true
1919

2020
[package.metadata.cargo-shear]

util/indexer-sync/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ ckb-types.workspace = true
2323
numext-fixed-uint.workspace = true
2424
rhai = { workspace = true, features = ["no_function", "no_float", "no_module", "sync"] }
2525
rocksdb = { workspace = true, features = ["snappy"], default-features = false }
26-
serde_json = "1.0"
26+
serde_json.workspace = true
2727
thiserror.workspace = true

util/instrument/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ckb-chain.workspace = true
1414
ckb-chain-iter.workspace = true
1515
ckb-shared.workspace = true
1616
ckb-jsonrpc-types.workspace = true
17-
serde_json = "1.0"
17+
serde_json.workspace = true
1818
indicatif = { workspace = true, optional = true }
1919

2020
[features]

util/jsonrpc-types/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repository = "https://github.com/nervosnetwork/ckb"
1111
[dependencies]
1212
ckb-types.workspace = true
1313
serde = { workspace = true, features = ["derive"] }
14-
serde_json = "1.0"
14+
serde_json.workspace = true
1515
faster-hex.workspace = true
1616
schemars.workspace = true
1717

util/migrate/migration-template/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ proc-macro = true
1313

1414
[dependencies]
1515
quote.workspace = true
16-
syn = { version = "1.0", features = ["full", "printing"] }
16+
syn = { workspace = true, features = ["full", "printing"] }

util/network-alert/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ ckb-crypto.workspace = true
2727
ckb-async-runtime.workspace = true
2828
ckb-systemtime = { workspace = true, features = ["enable_faketime"] }
2929
faster-hex.workspace = true
30-
serde_json = "1.0"
30+
serde_json.workspace = true

util/occupied-capacity/macros/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ proc-macro = true
1313

1414
[dependencies]
1515
quote.workspace = true
16-
syn = "1.0"
16+
syn.workspace = true
1717
ckb-occupied-capacity-core.workspace = true

util/rich-indexer/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ tempfile.workspace = true
2929
[dev-dependencies]
3030
hex.workspace = true
3131
rand.workspace = true
32-
serde_json = "1.0"
32+
serde_json.workspace = true
3333
tokio = { workspace = true, features = ["macros", "rt-multi-thread", "sync"] }

0 commit comments

Comments
 (0)