facet-samplelibc 0.1.4

Sample C library integration with Facet
Documentation
1
2
3
4
5
6
7
fn main() {
    // Tell Cargo that if the given file changes, to rerun this build script.
    println!("cargo:rerun-if-changed=src");

    // Use the `cc` crate to build `example.c` and statically link it.
    cc::Build::new().file("src/example.c").compile("example");
}