rpgn

Crates.iorpgn
lib.rsrpgn
version
sourcesrc
created_at2024-05-12 13:25:35.42391+00
updated_at2025-03-11 19:21:41.975928+00
descriptionA crate for parsing PGNs (Portable [Chess] Game Notation).
homepage
repositoryhttps://github.com/tigerros/rpgn
max_upload_size
id1237434
Cargo.toml error:TOML parse error at line 23, column 1 | 23 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Leonard (tigerros)

documentation

README

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

cargo fmt