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

Download history 13/week @ 2024-09-17 63/week @ 2024-09-24 13/week @ 2024-10-01 9/week @ 2024-10-08 10/week @ 2024-10-15 2/week @ 2024-10-22 11/week @ 2024-10-29 10/week @ 2024-11-05 1/week @ 2024-11-12 14/week @ 2024-11-19 20/week @ 2024-11-26 19/week @ 2024-12-03 72/week @ 2024-12-10 4/week @ 2024-12-17

79 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–25MB
~428K SLoC