14 releases (4 breaking)
new 0.8.1 | Mar 22, 2025 |
---|---|
0.7.1 | Mar 7, 2025 |
0.3.4 |
|
0.2.4 |
|
#1375 in Parser implementations
840 downloads per month
67KB
1.5K
SLoC
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 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.
Dependencies
~1.4–2.3MB
~43K SLoC