ricardoquesada / bluepad32

Bluetooth gamepad, mouse and keyboard support for ESP32 and PicoW
https://bluepad32.readthedocs.io/
Other
503 stars 53 forks source link

esp-idf using Rust (esp-rs) | Generate FFI Bindings #71

Open lnxdxtf opened 4 months ago

lnxdxtf commented 4 months ago

I'm trying to use this library for an embedded project in Rust with ESP-IDF (esp-rs), but I'm stuck on how to generate the necessary FFI bindings to use it.

I need guidance or documentation on generating FFI bindings for Rust and integrating them with ESP-IDF, allowing me to use this library in my project.

Additional context Integrating this library into my Rust-based ESP-IDF project is crucial, and any help with FFI bindings would be greatly appreciated.

ricardoquesada commented 4 months ago

you are kind on your own here.

I wouldn't know how to generate them

lnxdxtf commented 4 months ago

🥲I will try to found a way Like in this video Don't Worry, C and Rust Can FINALLY Coexist (Here's How) | Embedded Rust and C on the RP2040 Pi Pico And share here