X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=rust-lightning;a=blobdiff_plain;f=lightning-block-sync%2FCargo.toml;fp=lightning-block-sync%2FCargo.toml;h=ec0547073dd62ea9180fb1befcd55acc99ef96a9;hp=0000000000000000000000000000000000000000;hb=f6e42b4d3eec5901d80805d0c25a61253ee35a8d;hpb=7889fa25fd93d585727971c9a987605de9223632 diff --git a/lightning-block-sync/Cargo.toml b/lightning-block-sync/Cargo.toml new file mode 100644 index 00000000..ec054707 --- /dev/null +++ b/lightning-block-sync/Cargo.toml @@ -0,0 +1,25 @@ +[package] +name = "lightning-block-sync" +version = "0.0.1" +authors = ["Matt Corallo"] +license = "Apache-2.0" +edition = "2018" +description = """ +Utilities to fetch the chain from Bitcoin Core REST/RPC Interfaces and feed them into Rust Lightning. +""" + +[features] +rest-client = [ "serde", "serde_json", "serde_derive" ] +rpc-client = [ "serde", "serde_json", "serde_derive", "base64" ] + +[dependencies] +bitcoin = "0.23" +lightning = { version = "0.0.11", path = "../lightning" } +tokio = { version = ">=0.2.12", features = [ "tcp", "io-util", "dns" ], optional = true } +serde = { version = "1", optional = true } +serde_json = { version = "1", optional = true } +serde_derive = { version = "1", optional = true } +base64 = { version = "0.9", optional = true } + +[dev-dependencies] +tokio = { version = ">=0.2.12", features = [ "macros", "rt-core" ] }