8 releases
Uses new Rust 2024
0.0.9 | Apr 16, 2025 |
---|---|
0.0.8 | Apr 15, 2025 |
0.0.4 | Mar 31, 2025 |
#363 in Parser implementations
3,623 downloads per month
57KB
924 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–6MB
~95K SLoC