Skip to content

Commit c41f65e

Browse files
committed
f - #[cfg_attr(c_bindings, allow(dead_code))]
1 parent 823e532 commit c41f65e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lightning/src/offers/invoice.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ impl SigningPubkeyStrategy for ExplicitSigningPubkey {}
206206
impl SigningPubkeyStrategy for DerivedSigningPubkey {}
207207

208208
macro_rules! invoice_explicit_signing_pubkey_builder_methods { ($self: ident, $self_type: ty) => {
209+
#[cfg_attr(c_bindings, allow(dead_code))]
209210
pub(super) fn for_offer(
210211
invoice_request: &'a InvoiceRequest, payment_paths: Vec<(BlindedPayInfo, BlindedPath)>,
211212
created_at: Duration, payment_hash: PaymentHash
@@ -222,6 +223,7 @@ macro_rules! invoice_explicit_signing_pubkey_builder_methods { ($self: ident, $s
222223
Self::new(&invoice_request.bytes, contents, ExplicitSigningPubkey {})
223224
}
224225

226+
#[cfg_attr(c_bindings, allow(dead_code))]
225227
pub(super) fn for_refund(
226228
refund: &'a Refund, payment_paths: Vec<(BlindedPayInfo, BlindedPath)>, created_at: Duration,
227229
payment_hash: PaymentHash, signing_pubkey: PublicKey
@@ -263,6 +265,7 @@ macro_rules! invoice_explicit_signing_pubkey_builder_methods { ($self: ident, $s
263265
} }
264266

265267
macro_rules! invoice_derived_signing_pubkey_builder_methods { ($self: ident, $self_type: ty) => {
268+
#[cfg_attr(c_bindings, allow(dead_code))]
266269
pub(super) fn for_offer_using_keys(
267270
invoice_request: &'a InvoiceRequest, payment_paths: Vec<(BlindedPayInfo, BlindedPath)>,
268271
created_at: Duration, payment_hash: PaymentHash, keys: KeyPair
@@ -279,6 +282,7 @@ macro_rules! invoice_derived_signing_pubkey_builder_methods { ($self: ident, $se
279282
Self::new(&invoice_request.bytes, contents, DerivedSigningPubkey(keys))
280283
}
281284

285+
#[cfg_attr(c_bindings, allow(dead_code))]
282286
pub(super) fn for_refund_using_keys(
283287
refund: &'a Refund, payment_paths: Vec<(BlindedPayInfo, BlindedPath)>, created_at: Duration,
284288
payment_hash: PaymentHash, keys: KeyPair,
@@ -347,6 +351,7 @@ macro_rules! invoice_builder_methods { (
347351
}
348352
}
349353

354+
#[cfg_attr(c_bindings, allow(dead_code))]
350355
fn fields(
351356
payment_paths: Vec<(BlindedPayInfo, BlindedPath)>, created_at: Duration,
352357
payment_hash: PaymentHash, amount_msats: u64, signing_pubkey: PublicKey
@@ -357,6 +362,7 @@ macro_rules! invoice_builder_methods { (
357362
}
358363
}
359364

365+
#[cfg_attr(c_bindings, allow(dead_code))]
360366
fn new(
361367
invreq_bytes: &'a Vec<u8>, contents: InvoiceContents, signing_pubkey_strategy: $type_param
362368
) -> Result<Self, Bolt12SemanticError> {

0 commit comments

Comments
 (0)