csv_lib 1.0.0

Library for parsing CSV files using memory-mapped I/O, with low alloc, and AVX2/NEON support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() {
    println!("I will tell you if something is wrong my friend");
    // Solo advertir si es x86_64
    let arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap_or_default();
    if arch == "x86_64" {
        // Detect avx2
        let target = std::env::var("CARGO_CFG_TARGET_FEATURE").unwrap_or_default();
        let has_avx2 = target.split(',').any(|f| f.trim() == "avx2");

        if !has_avx2 {
            println!("cargo:warning=🚨 WARNING: AVX2 not enabled! Compile with: RUSTFLAGS=\"-C target-cpu=native\" o $env:RUSTFLAGS = \"-C target-cpu=native\" in powershell");
        }
    }
}