simdutf 0.6.0

Unicode validation and transcoding at billions of characters per second
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn cpp11(cc: &mut cc::Build) {
    cc.cpp(true);
    if cfg!(not(all(windows, target_env = "msvc"))) {
        cc.flag("-std=c++11");
    }
}

fn main() {
    println!("cargo:rerun-if-changed=cpp/");

    let mut cc = cc::Build::new();
    cpp11(&mut cc);
    cc.file("cpp/simdutfrs.cpp").compile("simdutfrs");
}