mirror of
https://github.com/aljazceru/cdk.git
synced 2026-01-11 17:05:35 +01:00
* feat: add LDK Node Lightning backend with comprehensive integration - Add new cdk-ldk-node crate implementing Lightning backend using LDK Node - Extend MintPayment trait with start/stop methods for processor lifecycle management - Add LDK Node configuration support to cdk-mintd with chain source and gossip options - Enhance mint startup/shutdown to properly manage payment processor lifecycle --------- Co-authored-by: Erik <78821053+swedishfrenchpress@users.noreply.github.com>
31 lines
1.0 KiB
Rust
31 lines
1.0 KiB
Rust
fn main() {
|
|
// Check that at least one database feature is enabled
|
|
let has_database = cfg!(feature = "sqlite") || cfg!(feature = "postgres");
|
|
|
|
if !has_database {
|
|
panic!(
|
|
"cdk-mintd requires at least one database backend to be enabled.\n\
|
|
Available database features: sqlite, postgres\n\
|
|
Example: cargo build --features sqlite"
|
|
);
|
|
}
|
|
|
|
// Check that at least one Lightning backend is enabled
|
|
let has_lightning_backend = cfg!(feature = "cln")
|
|
|| cfg!(feature = "lnd")
|
|
|| cfg!(feature = "lnbits")
|
|
|| cfg!(feature = "fakewallet")
|
|
|| cfg!(feature = "grpc-processor")
|
|
|| cfg!(feature = "ldk-node");
|
|
|
|
if !has_lightning_backend {
|
|
panic!(
|
|
"cdk-mintd requires at least one Lightning backend to be enabled.\n\
|
|
Available Lightning backends: cln, lnd, lnbits, fakewallet, grpc-processor\n\
|
|
Example: cargo build --features \"sqlite fakewallet\""
|
|
);
|
|
}
|
|
|
|
println!("cargo:rerun-if-changed=build.rs");
|
|
}
|