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.
time
enables converting a RPGN date to atime::Date
usingTryFrom
.serde
enablesSerialize
andDeserialize
for most types. Types that implement bothDisplay
andFromStr
(orInto<char>
andTryFrom<char>
in the case ofEcoCategory
) use those implementations forSerialize
/Deserialize
. Other types use the automatic, derived version.