managarm / lai

LAI is an interpreter for AML, the ACPI Machine Language.
MIT License
176 stars 31 forks source link

Feature request: Rust bindings #116

Open rdrpenguin04 opened 2 years ago

rdrpenguin04 commented 2 years ago

Hello! I'm working on a hobby OS, and I'm about at the point where this would be awesome for my project. Unfortunately, my OS is written in Rust.

I'd be willing to attempt to make bindings for this, but this could be a nice place for tracking that progress. I'm looking forward to trying this out!

avdgrinten commented 2 years ago

It would indeed be nice to have some Rust bindings. Most of our data types either have unique or shared ownership (with appropriate finalization functions that decrement the refcount) already, so wrapping these types into Rust should be relatively straightforward. If you encounter any issues or corner cases, please let us know and we can maybe think of a workaround etc.

Andy-Python-Programmer commented 2 years ago

I did create one rust bindings (unsafe ones IIRC), let me go on a search on my hard drive, find it and push it to GitHub if you need those :^)

Andy-Python-Programmer commented 2 years ago

@rdrpenguin04 https://github.com/aero-os/lai-rs