Skip to content

Commit 0c5922e

Browse files
committed
Move Features into lightning-types
`lightning-invoice` currently has 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`. This takes one more step, moving the `Features` types from `lightning` to `lightning-types`.
1 parent 954b7be commit 0c5922e

File tree

6 files changed

+1256
-1214
lines changed

6 files changed

+1256
-1214
lines changed

lightning-types/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ edition = "2021"
1313
rustdoc-args = ["--cfg", "docsrs"]
1414

1515
[features]
16+
_test_utils = []
1617

1718
[dependencies]
1819
bitcoin = { version = "0.31", default-features = false }

0 commit comments

Comments
 (0)