1 2 3 4 5 6 7 8
fn main() { // Renamed to bcdec.c since cc doesn't like header only. // Don't enable defines marking functions "static" to avoid linking issues. cc::Build::new() .file("src/bcdec.c") .define("BCDEC_IMPLEMENTATION", None) .compile("bcdec"); }