Move top-level crate inside a pub module in prep for multi-crate bindings
authorMatt Corallo <git@bluematt.me>
Mon, 12 Apr 2021 21:37:55 +0000 (17:37 -0400)
committerMatt Corallo <git@bluematt.me>
Thu, 15 Apr 2021 22:01:27 +0000 (18:01 -0400)
commit6bc13e0b08c637fa381718aefd6a34637beb3b0d
treebdc101a234cd74a97841ef05863f738566724ea3
parent7e0d8189ef1fab54216e446938ac473588bf21cb
Move top-level crate inside a pub module in prep for multi-crate bindings

This wraps the lightning crate inside a `pub mod lightning` wrapper
in genbindings.sh, and modifies the binding generator to handle it.

It ends up removing some code in the main TypeResolver, at the cost
of some extra handling of imports in the ImportResolver, which
focuses the amount of code that needs to be aware of the top-level
crate name down to a much smaller area. This preps us for creating
bindings for multiple crates at once.
c-bindings-gen/src/main.rs
c-bindings-gen/src/types.rs
genbindings.sh