3 releases
Uses new Rust 2024
new 0.0.4 | Mar 31, 2025 |
---|---|
0.0.3 | Mar 31, 2025 |
0.0.2 | Mar 31, 2025 |
#740 in Parser implementations
161 downloads per month
55KB
859 lines
CSV Scout
CSV Scout is a Rust library for inferring basic CSV metadata — currently focused on detecting the delimiter and quote character.
This is a fork of (qsv-reader)
📦 Usage
cargo add csv-scout
Or directly to to Cargo.toml
[dependencies]
csv-scout = "*"
Import it in your crate:
use csv_scout;
Example
use csv_scout;
fn main() {
let path = "data/example.csv";
match csv_scout::Sniffer::new().sniff_path(path) {
Ok(metadata) => println!("{}", metadata),
Err(err) => eprintln!("ERROR: {}", err),
}
}
🔬 Feature Flags
runtime-dispatch-simd
– enables runtime SIMD detection for x86/x86_64 (SSE2, AVX2)generic-simd
– enables architecture-independent SIMD (requires Rust nightly)
These features are mutually exclusive and improve performance when sampling large files.
Dependencies
~4–5.5MB
~85K SLoC