#haskell #generate #handy #bindings #macro #c-ffi #hs-bindgen

macro hs-bindgen-attribute

Handy macro to generate C-FFI bindings from Rust to Haskell

4 releases (2 breaking)

0.9.2 Dec 6, 2023
0.9.1 Dec 6, 2023
0.9.0 Jul 4, 2023
0.8.1 Jun 20, 2023
0.7.2 Dec 5, 2022

#24 in #c-ffi

32 downloads per month
Used in hs-bindgen

MIT/Apache

18KB
315 lines

hs-bindgen-attribute

This library define the #[hs_bindgen] procedural macro used by hs-bindgen library.

Acknowledgments

⚠️ This is still a working experiment, not yet production ready.

This project was part of a work assignment as an IOG contractor.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

hs-bindgen-attribute

This library define the #[hs_bindgen] procedural macro used by hs-bindgen library.

Acknowledgments

⚠️ This is still a working experiment, not yet production ready.

This project was part of a work assignment as an IOG contractor.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~2MB
~47K SLoC