hpyproject / hpy

HPy: a better API for Python
https://hpyproject.org
MIT License
1.02k stars 52 forks source link

Automatically generate Rust bindings for hpy #325

Open thedrow opened 2 years ago

thedrow commented 2 years ago

Bindgen can already generate rust bindings automatically for us. Here's the output on Mac OSX.

In order to properly build the Rust library, we will need to link it to HPy somehow. If anyone can help me with the build.rs script, I can contribute the rest of the process.

mattip commented 10 months ago

@messense added a rust build script in this commit on their fork. I don't know enough about rust to say if it is a step forward?

messense commented 10 months ago

@mattip Opened https://github.com/hpyproject/hpy/pull/457

auvipy commented 9 months ago

@messense added a rust build script in this commit on their fork. I don't know enough about rust to say if it is a step forward?

this could be an option. we can consider moving forward with it. Although I'm also new to rust but now seriously invested.