Closed 0e4ef622 closed 3 weeks ago
input.rs:
#[repr(C)] pub struct MyStruct<T> { field: T } #[no_mangle] pub extern "C" fn my_function(x: MyStruct<[u8; 4]>) {}
cbindgen --lang c input.rs:
cbindgen --lang c input.rs
#include <stdarg.h> #include <stdbool.h> #include <stdint.h> #include <stdlib.h> typedef struct MyStruct__________u8__________4 { uint8_t field[4]; } MyStruct__________u8__________4; void my_function(struct MyStruct__________u8__________4 x);
input.rs:
cbindgen --lang c input.rs
: