]> git.bitcoin.ninja Git - rust-lightning/commit
Move lightning-invoice deser errors to lib.rs instead of `pub use` 2022-04-bindings-invoice-ders
authorMatt Corallo <git@bluematt.me>
Mon, 4 Apr 2022 02:51:22 +0000 (02:51 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 4 Apr 2022 13:19:41 +0000 (13:19 +0000)
commitce5a9f528a96d1c10a992a1e89a27d58e5aecf86
tree83381f83f8126db31010a9807a870b2735833130
parent0a0f87c00f3c5e30965751fb46502ebc1f110333
Move lightning-invoice deser errors to lib.rs instead of `pub use`

Having public types in a private module is somewhat awkward from a
readability standpoint, but, more importantly, the bindings logic
has a relatively rough go of converting them - it doesn't implement
`pub use` as its "implement this function" logic is all within the
context of a module. We'd need to keep a set of re-exported things
to implement them when parsing modules...or we could just move two
enums from `de.rs` to `lib.rs` here, which is substantially less
work.
lightning-invoice/src/de.rs
lightning-invoice/src/lib.rs