From: Matt Corallo Date: Mon, 12 Apr 2021 21:37:55 +0000 (-0400) Subject: Move top-level crate inside a pub module in prep for multi-crate bindings X-Git-Tag: v0.0.98~14^2~6 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=6bc13e0b08c637fa381718aefd6a34637beb3b0d;hp=6bc13e0b08c637fa381718aefd6a34637beb3b0d;p=ldk-c-bindings 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. ---