3 stable releases

Uses old Rust 2015

1.1.2 Dec 18, 2015
1.1.1 Jul 6, 2015

#6 in #suit

40 downloads per month
Used in 4 crates

MIT license

7KB
158 lines

#cards-rs

Reusable playing cards library for Rust. See the tests for usage examples. Cards are modelled as a tuple of Value and Suit, as can be seen in the src/card.rs file.

The crate is called cards and you can depend on it via cargo:

[dependencies.cards]
git = "https://github.com/th4t/cards-rs.git"

lib.rs:

cards-rs contains a Card type to represent playing cards and a Deck which is a convenient method to generate reasonable amounts of randomly ordered playing cards.

Dependencies

~315–540KB