A rust library for parsing and rolling D&D 5e roll expressions.
Add this to your Cargo.toml:
[dependencies] critfail = "0.3"
See the docs for usage and examples.