hs-bindgen
Handy macro to generate C-FFI bindings from Rust to Haskell.
This library intended to work best in a project configured by
cabal-pack
.
Example
use *;
... will be expanded to ...
// Mangling randomize symbols
extern "C"
Acknowledgments
⚠️ This is still a working experiment, not yet production ready.
hs-bindgen
was heavily inspired by other interoperability initiatives, as
wasm-bindgen
and
PyO3
.
This project was part of a work assignment as an IOG contractor.