#chess #pgn #parser

rpgn

A crate for parsing PGNs (Portable [Chess] Game Notation)

8 releases

new 0.5.2 Feb 19, 2025
0.4.4 Feb 17, 2025
0.3.4 Nov 27, 2024
0.2.4 May 23, 2024

#897 in Parser implementations

Download history 138/week @ 2024-11-27 9/week @ 2024-12-04 17/week @ 2024-12-11 391/week @ 2025-02-12

391 downloads per month

GPL-3.0 license

53KB
1K SLoC

build coverage docs.rs crates.io license

RPGN

Note: this is not a complete implementation of the PGN standard.

Rust Portable Game Notation.

A crate for parsing a PGN, built on shakmaty and pgn-reader.

pgn-reader only allows you to read individual, untyped parts of the PGN, but doesn't actually parse it into something useful. This crate parses a PGN into the Pgn struct. See the docs for more.

Dependencies

~1.3–2MB
~36K SLoC