[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>
Wed, 3 Feb 2021 15:11:28 +0000 (10:11 -0500)
commit53f2e25a96e59a32baf14f821f16360d7bb6461f
treed85596f7dfd942f78b62a44184233d46765037fa
parentac078c103c64f19a70f7967dce620a1905397426
[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