| Crates.io | mana-symbols |
| lib.rs | mana-symbols |
| version | 0.2.0 |
| created_at | 2025-12-09 13:20:42.851574+00 |
| updated_at | 2025-12-14 15:50:34.364138+00 |
| description | Magic the Gathering mana symbols |
| homepage | |
| repository | https://github.com/Pazzaz/mana-symbols |
| max_upload_size | |
| id | 1975494 |
| size | 152,588 |
This is a Rust crate to model Mana costs from Magic the Gathering cards. It can parse text representations of mana (e.g. {5}{U}{U/B}), sort mana costs and calculate mana values.
The types of mana supported by this library are:
When sorting mana symbols in mana costs, this library uses an algorithm proposed by /u/Mean-Government1436 in a post on /r/custommagic. The developers of Magic the Gathering, Wizards of the Coast, have not given any official algorithm for sorting of mana symbols.
Graphical images used in this library, including mana symbols, is copyright Wizards of the Coast, LLC. This library is not produced by or endorsed by Wizards of the Coast.