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

#115 in Science

Download history 23/week @ 2024-08-31 7/week @ 2024-09-07 16/week @ 2024-09-14 58/week @ 2024-09-21 23/week @ 2024-09-28 1/week @ 2024-10-05 15/week @ 2024-10-12 5/week @ 2024-10-19 8/week @ 2024-10-26 12/week @ 2024-11-02 2/week @ 2024-11-09 9/week @ 2024-11-16 16/week @ 2024-11-23 21/week @ 2024-11-30 74/week @ 2024-12-07 10/week @ 2024-12-14

122 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

~12–23MB
~414K SLoC