1 use std::io; 2 main()3 fn main() { 4 let mut rdr = csv::Reader::from_reader(io::stdin()); 5 for result in rdr.records() { 6 let record = result.expect("a CSV record"); 7 println!("{:?}", record); 8 } 9 } 10