Open florianschieder opened 7 months ago
see .../binding.c:
.../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);
/////////////////////////// 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.
We could use https://github.com/mozilla/cbindgen here.
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.