Looking for a repository that will draw playing card images written in Rust

I'm looking for a Rust library that will help me draw playing card images that I can use in creating a Solitare game. I searched crates.io with no luck. Anyone know if something like this exists?

Thanks!

When I search for "card games" in lib.rs there are a few crates that are just card decks (see below), and perhaps you could borrow code from them. But it depends on what format you need, right? (I have no experience with this, just did the search.)

https://lib.rs/crates/cardpack
https://lib.rs/crates/casino_cards
https://lib.rs/crates/standard_card
https://lib.rs/crates/cardito
https://lib.rs/crates/card_play
https://lib.rs/crates/card_format
https://lib.rs/crates/karty

1 Like

If you want an html frontend, this memory game
could be used as a starting point for solitaire I think; It is one of the yew examples.

Also - note that unicode has a bunch of code points for playing cards ; useful for a TUI app.

1 Like

Pysol cardsets is not RUST but there is a good variety of free card images.

I wrote tui-cards for use with card games that people might want to build using Ratatui. This is how they look on the terminal:

3 Likes