Skip to content

Commit a2abe48

Browse files
committed
f move criterion optional deps to the cfg flag
1 parent 773c58c commit a2abe48

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

lightning-persister/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ bitcoin = "0.29.0"
1818
lightning = { version = "0.0.115", path = "../lightning" }
1919
libc = "0.2"
2020

21-
criterion = { version = "0.4", optional = true, default-features = false }
22-
2321
[target.'cfg(windows)'.dependencies]
2422
winapi = { version = "0.3", features = ["winbase"] }
2523

24+
[target.'cfg(ldk_bench)'.dependencies]
25+
criterion = { version = "0.4", optional = true, default-features = false }
26+
2627
[dev-dependencies]
2728
lightning = { version = "0.0.115", path = "../lightning", features = ["_test_utils"] }

lightning-rapid-gossip-sync/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ std = ["lightning/std"]
1818
lightning = { version = "0.0.115", path = "../lightning", default-features = false }
1919
bitcoin = { version = "0.29.0", default-features = false }
2020

21+
[target.'cfg(ldk_bench)'.dependencies]
2122
criterion = { version = "0.4", optional = true, default-features = false }
2223

2324
[dev-dependencies]

lightning/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ backtrace = { version = "0.3", optional = true }
4949

5050
core2 = { version = "0.3.0", optional = true, default-features = false }
5151

52-
criterion = { version = "0.4", optional = true, default-features = false }
53-
5452
[dev-dependencies]
5553
hex = "0.4"
5654
regex = "1.5.6"
@@ -60,5 +58,8 @@ version = "0.29.0"
6058
default-features = false
6159
features = ["bitcoinconsensus", "secp-recovery"]
6260

61+
[target.'cfg(ldk_bench)'.dependencies]
62+
criterion = { version = "0.4", optional = true, default-features = false }
63+
6364
[target.'cfg(taproot)'.dependencies]
6465
musig2 = { git = "https://github.com/arik-so/rust-musig2", rev = "27797d7" }

0 commit comments

Comments
 (0)