rpgn

Crates.iorpgn
lib.rsrpgn
version0.8.1
created_at2024-05-12 13:25:35.42391+00
updated_at2025-03-22 19:52:05.483698+00
descriptionA crate for parsing PGNs (Portable [Chess] Game Notation).
homepage
repositoryhttps://github.com/tigerros/rpgn
max_upload_size
id1237434
size93,741
(tigerros)

documentation

README

build coverage docs.rs crates.io license

RPGN

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.
  • serde enables Serialize and Deserialize for most types. Types that implement both Display and FromStr (or Into<char> and TryFrom<char> in the case of EcoCategory) use those implementations for Serialize/Deserialize. Other types use the automatic, derived version.
Commit count: 127

cargo fmt