]> git.bitcoin.ninja Git - rust-lightning/commit
Re-export `lightning_types` in top-level `lightning` modules 2024-08-new-types-export
authorMatt Corallo <git@bluematt.me>
Mon, 19 Aug 2024 14:37:03 +0000 (14:37 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 19 Aug 2024 14:50:30 +0000 (14:50 +0000)
commit1e1b8ecbb0bb0012b6467285a5bd616391d05d00
tree000829707508415638f8017a4453aeadbba993ba
parentccce9d9602996f4451d30604bb26a0be0833ef68
Re-export `lightning_types` in top-level `lightning` modules

Since we now have many types in one place, it makes sense to export
them in that place. Further, doing so finally somewhat starts to
reduce our `lightning::ln` module size, which historically is the
dumping ground for everything when most things really should be
top-level modules in `lightning`.

Here we take a step in the right direction by exporting
`lightning_types` as `lightning::types` and encouraging users to
use those paths directly rather than the ones in `lightning::ln`.
lightning/src/lib.rs
lightning/src/ln/features.rs
lightning/src/ln/mod.rs
lightning/src/ln/types.rs