4 releases
0.2.2 | Mar 15, 2021 |
---|---|
0.2.1 | Feb 14, 2020 |
0.2.0 | Feb 14, 2020 |
0.1.0 | Feb 14, 2020 |
#1391 in Game dev
30 downloads per month
8KB
tiny_die
this tiny crate provides the means of incorporating die rolls into your own project.
uses no_std
.
example
use tiny_die::Die;
fn main() {
let dee_six: Die = Die::new(6);
// or you can use Die::default(), you'll get the same d6
println!("rolled a {}", dee_six.roll());
}
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
lib.rs
:
A tiny lib crate for tiny dice.
Dependencies
~520KB