gnulightning-sys 2.3.0

Rust bindings for gnulightning jit compiler
Documentation
  • Coverage
  • 0%
    0 out of 2798 items documented0 out of 203 items with examples
  • Size
  • Source code size: 6.15 MB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 75.38 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 26s Average build duration of successful builds.
  • all releases: 26s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • n8ta

gnulighting-sys

Compiles gnu-lightning 2.3.0 and makes it available via this crate. There are quite a few irrelevant bindings included so definitely use the gnu lightning manual as a reference instead of the exports of this crate.

Tested on macOS likely to work on most linux distros, windows who knows.

Usage

Warning / Next Steps

It is very hard to write code with just the raw bindings. For this to be useful I or someone else will need to write a safe wrapper.
You will NOT be able to write idiomatic rust with this crate. Most of the macros are not present as bindings so instead of say jit_addi(JIT_R0, JIT_R0, 1); you'll be writing _jit_new_node_www(jit,jit_code_t_jit_code_addi, jit_reg_t__RAX as jit_word_t, jit_reg_t__RAX as jit_word_t, 1);

License

This crate is licensed under the same license as gnu lighting itself. GPL v3. See ./LICENSE and ./include/lightning-2.1.3/COPYING for a copy of the license.

Modification

The only modification made to gnulightning was to #include <math.h> in inclue/lightning-2.3.1/check/lightning.c.