cute-dnd-dice

Crates.iocute-dnd-dice
lib.rscute-dnd-dice
version4.0.0
sourcesrc
created_at2018-11-11 10:23:20.945967
updated_at2020-11-03 08:33:40.991289
descriptionSimple library to roll dices
homepage
repositoryhttps://gitlab.com/Douman/cute-dnd-dice
max_upload_size
id96051
size17,694
Douman (DoumanAsh)

documentation

https://docs.rs/cute-dnd-dice/

README

cute-dnd-dice

Build Crates.io Documentation

Simple library to roll dices

Random source

Relies on getrandom by default

Usage

use cute_dnd_dice::Roll;

fn main() {
    let roll = Roll::from_str("2d20+10").expect("To parse roll");
    println!("I roll {}", roll.roll());
}
Commit count: 10

cargo fmt