10 unstable releases (4 breaking)

0.5.1 Mar 8, 2024
0.4.6 Mar 5, 2024
0.4.5 Mar 8, 2023
0.3.2 Dec 31, 2022
0.2.1 Mar 10, 2020

#113 in Science

42 downloads per month
Used in 16 crates (4 directly)

MIT/Apache

135KB
1.5K SLoC

gchemol-parser

gchemol-parser is a streaming parser for text file based on winnow parser combinator.

Crates.io


lib.rs:

Text Reader for large text file.

Example

use gchemol_parser::TextReader;

let mut reader = TextReader::try_from_path("./tests/files/ch3f.mol2".as_ref()).unwrap();

// read a line into `s`
let mut s = String::new();
reader.read_line(&mut s).unwrap();

// seek a specific line
let _ = reader.seek_line(|line| line.starts_with("@<TRIPOS>")).unwrap();

Dependencies

~13–24MB
~418K SLoC