protozer0 0.3.0

Simple protobuf decoder based on the protozero C++ library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::env;

const SIMD_CFG: &str = "protozer0_simd";

fn main() {
    let arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();

    let simd = cfg!(feature = "simd") && matches!(&*arch, "x86" | "x86_64");

    println!("cargo::rerun-if-env-changed={SIMD_CFG}");
    println!("cargo::rustc-check-cfg=cfg({SIMD_CFG})");
    if simd {
        println!("cargo::rustc-cfg={SIMD_CFG}");
    }
}