| Crates.io | die-sir |
| lib.rs | die-sir |
| version | 0.1.0 |
| created_at | 2025-03-14 01:28:56.039559+00 |
| updated_at | 2025-03-14 01:28:56.039559+00 |
| description | A dice expression parser and evaluator |
| homepage | |
| repository | https://github.com/hggmarks/die-sir |
| max_upload_size | |
| id | 1591699 |
| size | 21,604 |
Die-Sir (Dicer) is a dice parser for random dice rolling with support for modifiers through basic math operations
Add this to your Cargo.toml:
[dependencies]
die-sir = "0.1.0"
Basic usage example:
use die_sir::evaluate;
fn main() {
let result = evaluate("2d6 + 3".to_string());
match result {
Ok(val) => println!("Result: {}", val),
Err(e) => println!("Error: {}", e),
}
}
This project is licensed under the MIT License - see the LICENSE file for details