]> git.bitcoin.ninja Git - rust-lightning/commit
Move `Features` into `lightning-types`
authorMatt Corallo <git@bluematt.me>
Fri, 9 Aug 2024 14:20:50 +0000 (14:20 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 13 Aug 2024 12:54:59 +0000 (12:54 +0000)
commit0c5922e92a3ec3fdf9226cceeb9057ad9aa9dc19
tree0e80a9166c2067ea0298f043f61c996b3d6f508e
parent954b7be85a63c9a942056a33443bd7979b14dcc9
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`.
lightning-types/Cargo.toml
lightning-types/src/features.rs [new file with mode: 0644]
lightning-types/src/lib.rs
lightning/Cargo.toml
lightning/src/ln/features.rs
lightning/src/ln/msgs.rs