2021-08-25 22:22:10 -06:00
|
|
|
cbindgen
|
|
|
|
________________________________________________________________________________
|
|
|
|
|
|
|
|
cbindgen creates C/C++11 headers for Rust libraries which expose a public C API.
|
|
|
|
|
|
|
|
While you could do this by hand, it's not a particularly good use of your time.
|
|
|
|
It's also much more likely to be error-prone than machine-generated headers that
|
|
|
|
are based on your actual Rust code. The cbindgen developers have also worked
|
|
|
|
closely with the developers of Rust to ensure that the headers we generate
|
|
|
|
reflect actual guarantees about Rust's type layout and ABI. [0]
|
|
|
|
|
|
|
|
Upstream: https://github.com/eqrion/cbindgen
|
|
|
|
|
|
|
|
|
|
|
|
[000] Index
|
|
|
|
________________________________________________________________________________
|
|
|
|
|
|
|
|
* Installation ........................................................... [001]
|
|
|
|
* Usage .................................................................. [002]
|
|
|
|
* References ............................................................. [003]
|
|
|
|
|
|
|
|
|
|
|
|
[001] Installation
|
|
|
|
________________________________________________________________________________
|
|
|
|
|
|
|
|
+------------------------------------------------------------------------------+
|
|
|
|
| |
|
2021-08-31 23:09:47 -06:00
|
|
|
| $ kiss b cbindgen |
|
2021-08-25 22:22:10 -06:00
|
|
|
| |
|
|
|
|
+------------------------------------------------------------------------------+
|
|
|
|
|
|
|
|
|
|
|
|
[002] Usage
|
|
|
|
________________________________________________________________________________
|
|
|
|
|
|
|
|
No documentation is currently provided with the package, refer to online
|
|
|
|
documentation for the time being. $/eqrion/cbindgen/blob/master/docs.md
|
|
|
|
|
|
|
|
|
|
|
|
[003] References
|
|
|
|
________________________________________________________________________________
|
|
|
|
|
|
|
|
[0] https://github.com/eqrion/cbindgen
|
|
|
|
|