]> git.bitcoin.ninja Git - rust-lightning/commit
[bindings] Support traits with generic arguments (to support #681)
authorMatt Corallo <git@bluematt.me>
Fri, 13 Nov 2020 00:58:51 +0000 (19:58 -0500)
committerMatt Corallo <git@bluematt.me>
Mon, 23 Nov 2020 16:08:34 +0000 (11:08 -0500)
commit304471b1c185ed25ce8fdefa51fdfc5844caf94e
tree8343c16b1e67c92032f4a9ae6050c299ed7fb5bc
parent8f10a1d33d8c4ec38cc39c9e013da24386e13f85
[bindings] Support traits with generic arguments (to support #681)

Previously we'd ignored generic arguments in traits, leading to
bogus code generation after the Persister trait was added in #681.

This adds minimal support for it, fixing code generation on latest
upstream.
c-bindings-gen/src/main.rs
c-bindings-gen/src/types.rs