mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-22 14:33:08 +01:00
BOLT 1 specifies a custom message type range for use with experimental or application-specific messages. While a `CustomMessageHandler` can be defined to support more than one message type, defining such a handler requires a significant amount of boilerplate and can be error prone. Add a crate exporting a `composite_custom_message_handler` macro for easily composing pre-defined custom message handlers. The resulting handler can be further composed with other custom message handlers using the same macro. This requires a separate crate since the macro needs to support "or" patterns in macro_rules, which is only available in edition 2021. https://doc.rust-lang.org/edition-guide/rust-2021/or-patterns-macro-rules.html Otherwise, a crate defining a handler for a set of custom messages could not easily be reused with another custom message handler. Doing so would require explicitly duplicating the reused handlers type ids, but those may change when the crate is updated.
13 lines
249 B
Text
13 lines
249 B
Text
/target/
|
|
c-bindings-gen/target/
|
|
lightning-c-bindings/target/
|
|
lightning-c-bindings/a.out
|
|
/hfuzz_target/
|
|
/net-tokio/target/
|
|
**/*.rs.bk
|
|
Cargo.lock
|
|
.idea
|
|
lightning/target
|
|
lightning/ldk-net_graph-*.bin
|
|
lightning-custom-message/target
|
|
no-std-check/target
|