]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Re-export RouteHint and PaymentSecret
authorbenthecarman <benthecarman@live.com>
Tue, 12 Sep 2023 22:48:00 +0000 (17:48 -0500)
committerbenthecarman <benthecarman@live.com>
Thu, 14 Sep 2023 17:41:11 +0000 (12:41 -0500)
lightning-invoice/src/lib.rs

index d1b381130c0714c566d48a38dcf8b843935b6f95..d4e2b736757d35c62f348fccf122f3cd39403470 100644 (file)
@@ -50,11 +50,9 @@ use bech32::u5;
 use bitcoin::{Address, Network, PubkeyHash, ScriptHash};
 use bitcoin::util::address::{Payload, WitnessVersion};
 use bitcoin_hashes::{Hash, sha256};
-use lightning::ln::PaymentSecret;
 use lightning::ln::features::Bolt11InvoiceFeatures;
 #[cfg(any(doc, test))]
 use lightning::routing::gossip::RoutingFees;
-use lightning::routing::router::RouteHint;
 use lightning::util::invoice::construct_invoice_preimage;
 
 use secp256k1::PublicKey;
@@ -73,6 +71,11 @@ use core::str;
 #[cfg(feature = "serde")]
 use serde::{Deserialize, Deserializer,Serialize, Serializer, de::Error};
 
+#[doc(no_inline)]
+pub use lightning::ln::PaymentSecret;
+#[doc(no_inline)]
+pub use lightning::routing::router::RouteHint;
+
 mod de;
 mod ser;
 mod tb;