10 releases (breaking)

new 0.8.0 Feb 9, 2025
0.6.1 Jan 26, 2025
0.6.0 Oct 12, 2024
0.4.0 Apr 2, 2024
0.1.0 Jul 12, 2022

#189 in Compression

Download history 8/week @ 2024-10-30 9/week @ 2024-11-06 3/week @ 2024-12-04 7/week @ 2024-12-11 96/week @ 2025-01-22 22/week @ 2025-01-29 221/week @ 2025-02-05

339 downloads per month

GPL-3.0+

35KB
766 lines

crates.io docs.rs

chess-huffman

Breaking change: games encoded with version >=0.7 cannot be decoded with version <0.7 and vice versa.

A Rust crate for Huffman compression of chess games. Builds upon Piotr Beling's bsuccinct, Niklas Fiekas's crates shakmaty and pgn-reader, and his blog post on the topic and Java implementation.

Refer to the documentation for up-to-date usage examples:

  • Encoding a game: encode_game, encode_pgn, MoveByMoveEncoder
  • Decoding a game: decode_game, MoveByMoveDecoder

Dependencies

~1.5MB
~26K SLoC