]> git.bitcoin.ninja Git - rust-lightning/commit
[bindings] Don't require trait impl for-structs to have no generics
authorMatt Corallo <git@bluematt.me>
Thu, 31 Dec 2020 16:14:22 +0000 (11:14 -0500)
committerMatt Corallo <git@bluematt.me>
Fri, 15 Jan 2021 00:49:14 +0000 (19:49 -0500)
commit74cf2dd9adbd575602eab690aea27d9eb3f810d1
tree197efc80e3c97099a2d5533e4a7a3b1ebf68659f
parentadd46299c18acebf7530e9fb852b4c18ae230c61
[bindings] Don't require trait impl for-structs to have no generics

This (finally) exposes `ChannelManager`/`ChannelMonitor` _write
methods, which were (needlessly) excluded as the structs themselves
have generic parameters. Sadly, we also now need to parse
`(C-not exported)` doc comments on impl blocks as we otherwise try
to expose _write methods for `&Vec<RouteHop>`, which doesn't work
(and isn't particularly interesting for users anyway). We add such
doc comments there.
c-bindings-gen/src/main.rs
lightning/src/ln/chan_utils.rs
lightning/src/routing/router.rs