Add REST and RPC clients to lightning-block-sync
[rust-lightning] / lightning-block-sync / Cargo.toml
index 547b04d71b7188839e5e1524792a642ae423d38d..f2032b05c3a8bd4081f5e2601249d869fa8d142b 100644 (file)
@@ -8,6 +8,17 @@ description = """
 Utilities to fetch the chain data from a block source and feed them into Rust Lightning.
 """
 
+[features]
+rest-client = [ "serde_json", "chunked_transfer" ]
+rpc-client = [ "serde_json", "chunked_transfer" ]
+
 [dependencies]
 bitcoin = "0.24"
 lightning = { version = "0.0.12", path = "../lightning" }
+tokio = { version = "1.0", features = [ "io-util", "net" ], optional = true }
+serde_json = { version = "1.0", optional = true }
+chunked_transfer = { version = "1.4", optional = true }
+futures = { version = "0.3" }
+
+[dev-dependencies]
+tokio = { version = "1.0", features = [ "macros", "rt" ] }