mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 15:02:20 +01:00
`lightning-invoice` previously had a dependency on the entire `lightning` crate just because it wants to use some of the useful types from it. This is obviously backwards and leads to some awkwardness like the BOLT 11 invoice signing API in the `lightning` crate taking a `[u5]` rather than a `Bolt11Invoice`. Here we finally rectify this issue, swapping the dependency order and making `lightning` depend on `lightning-invoice` rather than the other way around. This moves various utilities which were in `lightning-invoice` but relied on `lightning` payment types to make payments to where they belong (the `lightning` crate), but doesn't bother with integrating them well in their new home.
34 lines
1.1 KiB
TOML
34 lines
1.1 KiB
TOML
[package]
|
|
name = "lightning-invoice"
|
|
description = "Data structures to parse and serialize BOLT11 lightning invoices"
|
|
version = "0.31.0-beta"
|
|
authors = ["Sebastian Geisler <sgeisler@wh2.tu-dresden.de>"]
|
|
documentation = "https://docs.rs/lightning-invoice/"
|
|
license = "MIT OR Apache-2.0"
|
|
keywords = [ "lightning", "bitcoin", "invoice", "BOLT11" ]
|
|
readme = "README.md"
|
|
repository = "https://github.com/lightningdevkit/rust-lightning/"
|
|
edition = "2021"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[features]
|
|
default = ["std"]
|
|
no-std = ["bitcoin/no-std"]
|
|
std = ["bitcoin/std", "bech32/std"]
|
|
|
|
[dependencies]
|
|
bech32 = { version = "0.9.1", default-features = false }
|
|
lightning-types = { version = "0.1", path = "../lightning-types", default-features = false }
|
|
secp256k1 = { version = "0.28.0", default-features = false, features = ["recovery", "alloc"] }
|
|
serde = { version = "1.0.118", optional = true }
|
|
bitcoin = { version = "0.31.2", default-features = false }
|
|
|
|
[dev-dependencies]
|
|
serde_json = { version = "1"}
|
|
hashbrown = { version = "0.13", default-features = false }
|
|
|
|
[lints]
|
|
workspace = true
|