Is there a standard way to include .c source files?
So far I\'ve been using extern \"C\" { ... } to expose the functions, compiling .c to an object file
extern \"C\" { ... }
Editor's note: This answer predates Rust 1.0 and is no longer applicable.
Luqman gave a hint on IRC; using extern "C" { ... } with #[link_args="src/source.c"]; in the crate file works for me.
extern "C" { ... }
#[link_args="src/source.c"];