mtg_color

Crates.iomtg_color
lib.rsmtg_color
version1.1.0
sourcesrc
created_at2022-08-28 15:51:09.128408
updated_at2022-08-29 23:31:27.04703
descriptionStorage optimized color information for Magic the Gathering
homepage
repositoryhttps://github.com/SymmetricChaos/mtg_color
max_upload_size
id653954
size8,749
(SymmetricChaos)

documentation

README

mtg_color

Do you absolutely need to be able to represent the colors of Magic the Gathering cards (or other game objects) in a single byte? Are ergonmics irrelevant and storage space non-negotiable?

Features:

  • no-std compatible
  • only 14 shared bytes needed for all canonical symbol information (compared to 80 bytes for a naive implementation)
  • already at a stable 1.0.0 release
  • zero dependencies
  • coded in pure Rust for speed and safety
Commit count: 33

cargo fmt