]> git.bitcoin.ninja Git - ldk-c-bindings/commit
Handle no-export traits which are only implemented once as the implementor
authorMatt Corallo <git@bluematt.me>
Mon, 17 Jul 2023 02:16:01 +0000 (02:16 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 28 Jul 2023 23:06:00 +0000 (23:06 +0000)
commitb7defa46972f319f4bc86fc30900862c1a459f71
tree7a9256902bb20d66a16fe3bb7592b791a15ab3ca
parentdda9d452eb175033fa8ecb29f2396c79a05162cb
Handle no-export traits which are only implemented once as the implementor

If we have a trait marked no-export, and there's a single
implementor, we can just pretend its always the implementor. This
makes sense in LDK, for example, for the `APeerManager` trait,
which is implemented for all `PeerManager`s, but doesn't make sense
in bindings.
c-bindings-gen/src/main.rs
c-bindings-gen/src/types.rs