Generate docs with features for docs.rs
[rust-lightning] / lightning-block-sync / Cargo.toml
index 0a395e8b99da0f557f14a0379494faa1d36242b3..3a7d57956afe4e7707f54b28bcb4c784c6d030ac 100644 (file)
@@ -9,6 +9,10 @@ Utilities to fetch the chain data from a block source and feed them into Rust Li
 """
 edition = "2018"
 
+[package.metadata.docs.rs]
+all-features = true
+rustdoc-args = ["--cfg", "docsrs"]
+
 [features]
 rest-client = [ "serde", "serde_json", "chunked_transfer" ]
 rpc-client = [ "serde", "serde_json", "chunked_transfer" ]