]> git.bitcoin.ninja Git - rust-lightning/commit
Expose `impl_writeable_tlv_based` macro
authorOmer Yacine <mariocynicys@gmail.com>
Fri, 6 Jan 2023 08:18:26 +0000 (10:18 +0200)
committerOmer Yacine <mariocynicys@gmail.com>
Mon, 9 Jan 2023 19:16:30 +0000 (21:16 +0200)
commit3a33693b1e279221f517b33af6bbdf38cc1330a9
tree3af0aefd5fc8e125988d586039e378fa3faf5adc
parentb79ff71fe7587b03ab0b7fe8b6229eb4bc2d7f08
Expose `impl_writeable_tlv_based` macro

Every exported macro needed to have all the macros used inside it:
1- to be exported as well.
2- be called from the `$crate` namespace so it works in other crates.

Some structs in `lightning::util::ser` needed to be made public as they were used inside the exported macros.

Use the macros like this:
```Rust
lightning::impl_writeable_tlv_based!(...)
```
lightning/src/ln/channelmanager.rs
lightning/src/ln/msgs.rs
lightning/src/onion_message/packet.rs
lightning/src/routing/gossip.rs
lightning/src/util/chacha20poly1305rfc.rs
lightning/src/util/mod.rs
lightning/src/util/ser.rs
lightning/src/util/ser_macros.rs