| Crates.io | csv-scout |
| lib.rs | csv-scout |
| version | 0.0.9 |
| created_at | 2025-03-31 08:54:21.511478+00 |
| updated_at | 2025-04-16 12:17:29.080713+00 |
| description | A CSV file format sniffer for Rust |
| homepage | |
| repository | https://github.com/oshtivi/csv-scout |
| max_upload_size | |
| id | 1613200 |
| size | 88,610 |
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)
cargo add csv-scout
Or directly to to Cargo.toml
[dependencies]
csv-scout = "*"
Import it in your crate:
use csv_scout;
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),
}
}
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.