Generate docs with features for docs.rs
[rust-lightning] / lightning-invoice / Cargo.toml
index e1f33f0fa2662ce9ecb772595dfa537e3d4b9993..3c2678bdc916a06ad8ab9447a6ddf272db567b3f 100644 (file)
@@ -8,6 +8,10 @@ license = "MIT OR Apache-2.0"
 keywords = [ "lightning", "bitcoin", "invoice", "BOLT11" ]
 readme = "README.md"
 
+[package.metadata.docs.rs]
+all-features = true
+rustdoc-args = ["--cfg", "docsrs"]
+
 [features]
 default = ["std"]
 no-std = ["hashbrown", "lightning/no-std", "core2/alloc"]