We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
I believe one is able to define C -> Rust function (Rust code callable from C) like this:
extern "C" fn foo(x: ::std::libc::c_int) -> ::std::libc::c_int { 2 * x }
but the construction above is at best only hinted at in the current tutorial-ffi.md