Add FFI support to memfd-ringbuff so that C applications can use the Rust implementation directly.
Requirements:
Export C-compatible API.
Generate header files with cbindgen.
Provide shared library build support.
Add example and documentation.
This avoids maintaining a separate C implementation of the ring buffer.
Add FFI support to memfd-ringbuff so that C applications can use the Rust implementation directly.
Requirements:
Export C-compatible API.
Generate header files with cbindgen.
Provide shared library build support.
Add example and documentation.
This avoids maintaining a separate C implementation of the ring buffer.