From 79b426f49b08a66e404669ce7d1332c3977c5d95 Mon Sep 17 00:00:00 2001 From: benthecarman Date: Tue, 12 Sep 2023 17:48:00 -0500 Subject: [PATCH] Re-export RouteHint and PaymentSecret --- lightning-invoice/src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lightning-invoice/src/lib.rs b/lightning-invoice/src/lib.rs index d1b381130..d4e2b7367 100644 --- a/lightning-invoice/src/lib.rs +++ b/lightning-invoice/src/lib.rs @@ -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; -- 2.39.5