Skip to content

Commit 2a93afe

Browse files
committed
Fix check-cargotoml.sh
1 parent e2f8e57 commit 2a93afe

File tree

5 files changed

+12
-17
lines changed

5 files changed

+12
-17
lines changed

Cargo.lock

Lines changed: 2 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

util/launcher/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ ckb-tx-pool = { path = "../../tx-pool", version = "= 0.113.0-pre" }
4040
ckb-light-client-protocol-server = { path = "../light-client-protocol-server", version = "= 0.113.0-pre" }
4141
ckb-block-filter = { path = "../../block-filter", version = "= 0.113.0-pre" }
4242
ckb-migrate = { path = "../migrate", version = "= 0.113.0-pre" }
43-
num_cpus = "1.10"
4443
once_cell = "1.8.0"
4544
tempfile.workspace = true
4645

4746
[features]
4847
with_sentry = [ "ckb-sync/with_sentry", "ckb-network/with_sentry", "ckb-app-config/with_sentry" ]
49-
portable = ["ckb-db/portable", "ckb-db-migration/portable"]
50-
march-native = ["ckb-db/march-native", "ckb-db-migration/march-native"]
48+
portable = ["ckb-db/portable", "ckb-migrate/portable"]
49+
march-native = ["ckb-db/march-native", "ckb-migrate/march-native"]

util/launcher/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
//!
33
//! ckb launcher is helps to launch ckb node.
44
5-
// declare here for mute ./devtools/ci/check-cargotoml.sh error
6-
extern crate num_cpus;
7-
85
mod shared_builder;
96

107
use ckb_app_config::{

util/migrate/Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,20 @@ repository = "https://github.com/nervosnetwork/ckb"
1313
[dependencies]
1414
ckb-migration-template = { path = "migration-template", version = "= 0.113.0-pre" }
1515
ckb-db = { path = "../../db", version = "= 0.113.0-pre" }
16-
ckb-logger = { path = "../logger", version = "= 0.113.0-pre" }
1716
ckb-error = { path = "../../error", version = "= 0.113.0-pre" }
1817
ckb-db-schema = { path = "../../db-schema", version = "= 0.113.0-pre" }
1918
ckb-db-migration = { path = "../../db-migration", version = "= 0.113.0-pre" }
2019
ckb-app-config = { path = "../app-config", version = "= 0.113.0-pre" }
2120
ckb-types = { path = "../types", version = "= 0.113.0-pre" }
2221
ckb-store = { path = "../../store", version = "= 0.113.0-pre" }
2322
ckb-chain-spec = { path = "../../spec", version = "= 0.113.0-pre" }
24-
indicatif = "0.16"
25-
console = ">=0.9.1, <1.0.0"
2623
ckb-hash = { path = "../hash", version = "= 0.113.0-pre" }
27-
num_cpus = "1.10"
2824
tempfile.workspace = true
25+
num_cpus = "1.10"
2926

3027
[dev-dependencies]
3128
ckb-systemtime = {path = "../systemtime", version = "= 0.113.0-pre", features = ["enable_faketime"] }
29+
30+
[features]
31+
portable = ["ckb-db/portable", "ckb-db-migration/portable"]
32+
march-native = ["ckb-db/march-native", "ckb-db-migration/march-native"]

util/migrate/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
//!
33
//! ckb migrate help to migrate CKB's data on schema change.
44
5+
// declare here for mute ./devtools/ci/check-cargotoml.sh error
6+
extern crate num_cpus;
7+
58
pub mod migrate;
69
mod migrations;
710
#[cfg(test)]

0 commit comments

Comments
 (0)