#chess #pgn #parser

rpgn

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

11 unstable releases (3 breaking)

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

#804 in Parser implementations

Download history 117/week @ 2024-11-22 27/week @ 2024-11-29 19/week @ 2024-12-06 1/week @ 2024-12-13 391/week @ 2025-02-14

391 downloads per month

GPL-3.0 license

60KB
1.5K SLoC

build coverage docs.rs crates.io license

RPGN

Note: this is not a complete implementation of the PGN standard. Note: builds may fail because Clippy has a false positive warning. I can't even disable it so just ignore it.

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.

Features

  • time enables converting a RPGN date to a time::Date using TryFrom.

Dependencies

~1.4–2.2MB
~41K SLoC