Some tests about Rust C FFI in the context of in internship about this subject.
How to compile the C file :
gcc main.c -o main -lrust_from_c -L./target/debug
#[no_mangle]
pub extern "C" fn hello_from_rust() {
println!("Hello word from Rust");
}
extern void hello_from_rust();
int main(void) {
hello_from_rust();
return 0;
}