]> git.bitcoin.ninja Git - rust-lightning/commit
Add a `lightning-types` dependency to `lightning-invoice`
authorMatt Corallo <git@bluematt.me>
Fri, 9 Aug 2024 01:13:25 +0000 (01:13 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 13 Aug 2024 12:54:59 +0000 (12:54 +0000)
commit1eba737f442fba62ce25a34b2a857d6b9df484fc
tree6fbffeb881a30d39314c2739b1d6a65eed7b0b98
parent1f01f2ef672ba6054b0cd0ba2606960cb550ab0c
Add a `lightning-types` dependency to `lightning-invoice`

`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 tees us up for the final step, adding a
`lightning-types` dependency to `lightning-invoice` and using it
for imports rather than the `lightning` crate.
lightning-invoice/Cargo.toml
lightning-invoice/src/de.rs
lightning-invoice/src/lib.rs