florianschieder / rugby

Using Rust libraries within Python projects
GNU General Public License v3.0
0 stars 0 forks source link

Automate C headers #10

Open florianschieder opened 7 months ago

florianschieder commented 7 months ago

see .../binding.c:

/////////////////////////// Rust-C binding /////////////////////////// int rugby_sum(int lowerBound, int upperBound); const char * rugby_greet(const char *name); void free_string(const char *str);

We should somehow try to find a way to automatically derive this header from the Rust declarations.

florianschieder commented 7 months ago

We could use https://github.com/mozilla/cbindgen here.