4 releases (2 breaking)

0.3.0 Aug 29, 2021
0.2.1 Apr 6, 2021
0.2.0 Apr 5, 2021
0.1.0 Apr 5, 2021

#2508 in Parser implementations

Download history 18/week @ 2024-11-19 22/week @ 2024-11-26 1/week @ 2024-12-03 9/week @ 2024-12-10 5/week @ 2024-12-17 52/week @ 2024-12-24 8/week @ 2025-01-21 16/week @ 2025-01-28 21/week @ 2025-02-04 4/week @ 2025-02-11 31/week @ 2025-02-18 36/week @ 2025-02-25 14/week @ 2025-03-04

91 downloads per month
Used in svfplayer

MIT license

120KB
1.5K SLoC

svf - Serial Vector Format file parser/emitter

LICENSE crates.io docs.rs CI Coverage

Parses SVF files into individual commands, and emits SVF format text from parsed or constructed commands.


lib.rs:

svf

Parse and generate SVF files.

Use parse_complete to parse a full SVF file into a vector of Command, parse_iter to create an iterator over Command which parses incrementally, or parse_iter_bufread to create an iterator using a BufRead input, allowing both the input and output to be processed piece-by-piece.

Once parsed, or if you construct Command manually, the Display trait implementation on Command can be used to generate SVF files.

Dependencies

~1.1–1.8MB
~37K SLoC