[bindings] Build a wasm32-wasi library in genbindings.sh
authorMatt Corallo <git@bluematt.me>
Sat, 9 Jan 2021 02:55:47 +0000 (21:55 -0500)
committerMatt Corallo <git@bluematt.me>
Mon, 1 Mar 2021 23:07:29 +0000 (18:07 -0500)
commitf2e4f8a2293de3f9a51319d5b42eafc551c158b3
tree2164441d3f8e8eba8366a40c6a3d701623647a74
parent808db585782d1669b1f6767d5fa407f91fde77e8
[bindings] Build a wasm32-wasi library in genbindings.sh

This will switch to use the clang/C WASM ABI instead of the
wasm_bindgen WASM ABI as of rustc 1.51 (or nightly since [1]),
allowing us to link C and Rust code in a single wasm binary.

[1] https://github.com/rust-lang/rust/pull/79998
genbindings.sh
lightning-c-bindings/Cargo.toml
lightning-c-bindings/include/lightning.h