2023-02-07 09:22:28 -05:00
|
|
|
[package]
|
|
|
|
|
name = "lndk"
|
2025-09-27 10:19:21 +02:00
|
|
|
version = "0.3.0"
|
2023-02-07 09:22:28 -05:00
|
|
|
edition = "2021"
|
2023-05-12 16:46:17 -04:00
|
|
|
repository = "https://github.com/lndk-org/lndk"
|
2023-02-07 09:22:28 -05:00
|
|
|
|
2023-10-12 22:24:34 -05:00
|
|
|
[[bin]]
|
|
|
|
|
name = "lndk-cli"
|
|
|
|
|
path = "src/cli.rs"
|
|
|
|
|
|
2023-02-07 09:22:28 -05:00
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
2023-04-06 16:06:18 +01:00
|
|
|
[package.metadata.configure_me]
|
|
|
|
|
spec = "config_spec.toml"
|
2023-02-07 09:22:28 -05:00
|
|
|
|
2025-04-14 22:53:14 -04:00
|
|
|
[features]
|
|
|
|
|
itest = ["dep:bitcoincore-rpc", "dep:corepc-node", "dep:chrono", "dep:ldk-sample"]
|
|
|
|
|
|
2023-02-07 09:22:28 -05:00
|
|
|
[dependencies]
|
2023-03-20 16:02:19 -05:00
|
|
|
async-trait = "0.1.66"
|
2025-05-19 18:26:46 -04:00
|
|
|
bitcoin = { version = "0.32.6", features = ["rand"] }
|
2024-01-26 16:31:46 -06:00
|
|
|
clap = { version = "4.4.6", features = ["derive", "string"] }
|
2023-03-01 14:34:38 -05:00
|
|
|
futures = "0.3.26"
|
2023-09-27 17:12:09 -05:00
|
|
|
home = "0.5.5"
|
2025-06-02 15:54:43 -04:00
|
|
|
# lightning = { version = "0.1.3", features = ["_test_utils"] }
|
|
|
|
|
# Branch port commit https://github.com/lightningdevkit/rust-lightning/commit/928429833507eb98b1f9a3793da4fe4527e11435
|
2026-04-14 07:48:12 +02:00
|
|
|
# from main branch on top of version 0.1.3, plus offer_amount=0 fix from
|
|
|
|
|
# https://github.com/lightningdevkit/rust-lightning/pull/4487 (cherry-picked).
|
2025-06-02 15:54:43 -04:00
|
|
|
# TODO: Use main crate when version 0.2.X is deployed.
|
2026-04-14 07:48:12 +02:00
|
|
|
lightning = { git = "https://github.com/vincenzopalazzo/rust-lightning", branch = "2025-06-cherry-pick-exposed-offer-amount-fix", features = ["dnssec"] }
|
2025-06-02 15:54:43 -04:00
|
|
|
|
2025-09-08 12:26:18 -03:00
|
|
|
rand_chacha = "0.9.0"
|
|
|
|
|
rand_core = { version = "0.9.3", features = ["os_rng"] }
|
2023-03-08 14:16:21 -05:00
|
|
|
log = "0.4.17"
|
2023-09-27 17:12:09 -05:00
|
|
|
log4rs = { version = "1.2.0", features = ["file_appender"] }
|
2025-09-09 19:04:50 -03:00
|
|
|
rcgen = { version = "0.14.3", features = ["pem", "x509-parser"] }
|
2024-09-03 09:05:30 +09:00
|
|
|
tokio = { version = "1.25.0", features = ["rt", "rt-multi-thread", "signal", "test-util"] }
|
2025-09-09 19:04:50 -03:00
|
|
|
tonic = { version = "0.14.2", features = ["tls-ring", "transport" ] }
|
|
|
|
|
tonic-prost = "0.14.2"
|
2025-09-13 22:38:27 -03:00
|
|
|
tonic-types = "0.14.2"
|
2025-09-09 19:22:04 -03:00
|
|
|
tonic_lnd = { git = "https://github.com/lndk-org/tonic_lnd", rev="f89f49aadc439b37d65947cc454eecffdc8c35e0", package="lndk-tonic-lnd", features = ["lightningrpc", "routerrpc", "versionrpc"] }
|
2023-03-17 10:04:32 -04:00
|
|
|
hex = "0.4.3"
|
2023-04-06 16:06:18 +01:00
|
|
|
configure_me = "0.4.0"
|
2026-03-24 16:21:46 -05:00
|
|
|
bytes = "1.11.1"
|
|
|
|
|
time = "0.3.47"
|
|
|
|
|
rustls-webpki = "0.103.10"
|
|
|
|
|
tar = "0.4.45"
|
2023-12-20 09:58:37 -05:00
|
|
|
triggered = "0.1.2"
|
2025-09-09 19:04:50 -03:00
|
|
|
prost = "0.14.1"
|
2025-07-30 15:41:01 -05:00
|
|
|
async_fn_traits = "0.1.1"
|
2023-03-20 16:02:51 -05:00
|
|
|
|
2025-04-14 22:53:14 -04:00
|
|
|
# Integration test dependencies, only enabled with itest feature
|
|
|
|
|
bitcoincore-rpc = { version = "0.19.0", optional = true }
|
2025-09-05 16:48:37 -04:00
|
|
|
corepc-node = { version = "0.8.0", features = [ "28_0", "download"], optional = true }
|
2025-04-14 22:53:14 -04:00
|
|
|
chrono = { version = "0.4.26", optional = true }
|
2025-06-02 15:54:43 -04:00
|
|
|
ldk-sample = { git = "https://github.com/a-mpch/ldk-sample", branch = "2025-06-use-forked-ldk", optional = true }
|
2025-04-14 22:53:14 -04:00
|
|
|
|
2023-03-20 16:02:51 -05:00
|
|
|
[dev-dependencies]
|
2025-09-09 19:22:04 -03:00
|
|
|
mockall = "0.13.1"
|
2023-08-30 22:53:08 -05:00
|
|
|
tempfile = "3.5.0"
|
2023-04-06 16:06:18 +01:00
|
|
|
|
|
|
|
|
[build-dependencies]
|
2023-03-27 13:20:47 -04:00
|
|
|
configure_me_codegen = "0.4.4"
|
2025-09-09 19:04:50 -03:00
|
|
|
tonic-prost-build = "0.14.2"
|
2023-05-03 16:02:28 +02:00
|
|
|
|
|
|
|
|
# The profile that 'cargo dist' will build with
|
|
|
|
|
[profile.dist]
|
|
|
|
|
inherits = "release"
|
|
|
|
|
lto = "thin"
|
2025-04-14 22:53:14 -04:00
|
|
|
|
2026-04-14 07:48:12 +02:00
|
|
|
# Ensure ldk-sample (and any other transitive dep) uses the same rust-lightning
|
|
|
|
|
# fork as lndk itself, avoiding duplicate crate versions in the lockfile.
|
|
|
|
|
[patch."https://github.com/a-mpch/rust-lightning"]
|
|
|
|
|
lightning = { git = "https://github.com/vincenzopalazzo/rust-lightning", branch = "2025-06-cherry-pick-exposed-offer-amount-fix" }
|
|
|
|
|
lightning-invoice = { git = "https://github.com/vincenzopalazzo/rust-lightning", branch = "2025-06-cherry-pick-exposed-offer-amount-fix" }
|
|
|
|
|
lightning-types = { git = "https://github.com/vincenzopalazzo/rust-lightning", branch = "2025-06-cherry-pick-exposed-offer-amount-fix" }
|
|
|
|
|
lightning-net-tokio = { git = "https://github.com/vincenzopalazzo/rust-lightning", branch = "2025-06-cherry-pick-exposed-offer-amount-fix" }
|
|
|
|
|
lightning-persister = { git = "https://github.com/vincenzopalazzo/rust-lightning", branch = "2025-06-cherry-pick-exposed-offer-amount-fix" }
|
|
|
|
|
lightning-background-processor = { git = "https://github.com/vincenzopalazzo/rust-lightning", branch = "2025-06-cherry-pick-exposed-offer-amount-fix" }
|
|
|
|
|
lightning-rapid-gossip-sync = { git = "https://github.com/vincenzopalazzo/rust-lightning", branch = "2025-06-cherry-pick-exposed-offer-amount-fix" }
|
|
|
|
|
lightning-block-sync = { git = "https://github.com/vincenzopalazzo/rust-lightning", branch = "2025-06-cherry-pick-exposed-offer-amount-fix" }
|
|
|
|
|
lightning-dns-resolver = { git = "https://github.com/vincenzopalazzo/rust-lightning", branch = "2025-06-cherry-pick-exposed-offer-amount-fix" }
|
|
|
|
|
possiblyrandom = { git = "https://github.com/vincenzopalazzo/rust-lightning", branch = "2025-06-cherry-pick-exposed-offer-amount-fix" }
|
|
|
|
|
|
2025-04-14 22:53:14 -04:00
|
|
|
[lints.rust.unexpected_cfgs]
|
|
|
|
|
level = "forbid"
|
|
|
|
|
# When adding a new cfg attribute, ensure that it is added to this list.
|
|
|
|
|
check-cfg = [
|
|
|
|
|
"cfg(itest)"
|
|
|
|
|
]
|