Skip to content

Commit 94b1c72

Browse files
authored
Merge pull request #4350 from Apostlex0/feat/blocks-sync-bitreq
lightning-block-sync: switch to bitreq, drop chunked_transfer
2 parents 153e57e + 16ea4c7 commit 94b1c72

File tree

5 files changed

+464
-901
lines changed

5 files changed

+464
-901
lines changed

lightning-block-sync/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ all-features = true
1616
rustdoc-args = ["--cfg", "docsrs"]
1717

1818
[features]
19-
rest-client = [ "serde_json", "chunked_transfer" ]
20-
rpc-client = [ "serde_json", "chunked_transfer" ]
19+
rest-client = [ "serde_json", "dep:bitreq" ]
20+
rpc-client = [ "serde_json", "dep:bitreq" ]
21+
tokio = [ "dep:tokio", "bitreq?/async" ]
2122

2223
[dependencies]
2324
bitcoin = "0.32.2"
2425
lightning = { version = "0.3.0", path = "../lightning" }
2526
tokio = { version = "1.35", features = [ "io-util", "net", "time", "rt" ], optional = true }
2627
serde_json = { version = "1.0", optional = true }
27-
chunked_transfer = { version = "1.4", optional = true }
28+
bitreq = { version = "0.3", default-features = false, features = ["std"], optional = true }
2829

2930
[dev-dependencies]
3031
lightning = { version = "0.3.0", path = "../lightning", features = ["_test_utils"] }

0 commit comments

Comments
 (0)