Matt Corallo
ecf736a9a5
strip binaries in genbindings.sh for better size comparison
2021-02-01 16:52:57 -05:00
Matt Corallo
9fe3124eb7
Use CARGO_PROFILE_RELEASE_LTO to fix bindings build on new cargo
...
Newer versions of cargo broke `cargo rustc -- -Clto` by passing
`-Cembed-bitcode=no` even in `--release`. Its somewhat unclear why
this is still the case on latest cargo given it broke, at least,
compilation of Firefox, as discovered by Val at [1]. We take the
approach they used there, even though they later walked it back [2]
but the issues noted there, especially in [3] don't seem
particularly concerning in our case.
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1640982
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1654465
[3] https://bugzilla.mozilla.org/show_bug.cgi?id=1654465#c5
2020-11-23 11:12:49 -05:00
Matt Corallo
dce831ed20
Rename lightning C/C++ bindings library to libldk
...
This should fix #689 .
2020-09-13 20:58:50 -04:00
Matt Corallo
dbf4f58987
Remove the bindings crate from the root namespace to let it break
...
Until we get the bindings generation process super stable, let the
bindings get stale with respect to the main repo while still letting
`cargo check` pass.
2020-09-13 20:58:50 -04:00
Matt Corallo
1af8a464b4
Add all the manually-generated bits for the c-bindings crate
...
Including:
* A script to automatically generate all the rest,
* Cargo.toml and cbindgen.toml,
* manually-written wrapper types for a few types
2020-09-10 22:03:32 -04:00