asmjson 0.2.4

A fast JSON parser using AVX-512/AVX2/SWAR classifiers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() {
    // Assemble the hand-written AVX-512BW parsers on x86_64 host builds.
    let target_arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap_or_default();
    if target_arch == "x86_64" {
        cc::Build::new()
            .file("asm/x86_64/parse_json_zmm_sax.S")
            .compile("parse_json_zmm_sax");
        cc::Build::new()
            .file("asm/x86_64/parse_json_zmm_dom.S")
            .compile("parse_json_zmm_dom");
    }
    println!("cargo:rerun-if-changed=asm/x86_64/parse_json_zmm_sax.S");
    println!("cargo:rerun-if-changed=asm/x86_64/parse_json_zmm_dom.S");
}