#haskell #generate #handy #macro #bindings #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

#9 in #c-ffi

Download history 28/week @ 2023-12-05 1/week @ 2024-02-13 14/week @ 2024-02-20 21/week @ 2024-02-27 3/week @ 2024-03-05 21/week @ 2024-03-12

60 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

~0.6–1.3MB
~28K SLoC