[bindings] Use new non-null annotation feature in cbindgen
authorMatt Corallo <git@bluematt.me>
Thu, 31 Dec 2020 03:09:26 +0000 (22:09 -0500)
committerMatt Corallo <git@bluematt.me>
Fri, 15 Jan 2021 00:49:14 +0000 (19:49 -0500)
commita044ba0667d0ca62d8a4e3c3b28605d66198ce7f
treee2fd5e9c5ec86d76ec822a8b7390d67d04b45c4d
parentb386da1c1c52264769daef3b2228138fd3a9a5ba
[bindings] Use new non-null annotation feature in cbindgen

This adds a new annotation for objects we take by reference in the
C header indicating the pointers must not be null. We have to
disable some warning clang now dumps that we haven't annotated all
pointers, as cbindgen is not yet able to add a nullable annotation.
c-bindings-gen/src/main.rs
genbindings.sh
lightning-c-bindings/cbindgen.toml