[package] name = "bracket-random" version = "0.8.7" authors = ["Herbert Wolverson "] edition = "2021" publish = true description = "Random number generator (xorshift based), focused on dice rolling. Optionally includes parsing of RPG-style dice strings (e.g. \"3d6+12\"). Part of the bracket-lib family." homepage = "https://github.com/thebracket/bracket-lib" repository = "https://github.com/thebracket/bracket-lib" readme = "README.md" keywords = ["roguelike", "gamedev", "random", "xorshift", "dice"] categories = ["game-engines", "random"] license = "MIT" [features] default = [ "parsing" ] parsing = [ "regex", "lazy_static" ] serde = [ "serde_crate", "rand_xorshift/serde1" ] [dependencies] rand_xorshift = { version = "0.3.0" } regex = { version = "1.3.6", optional = true } lazy_static = { version = "1.4.0", optional = true } serde_crate = { version = "~1.0.110", features = ["derive"], optional = true, package = "serde" } rand = { version = "0.8", default-features = false } [target.'cfg(not(any(target_arch = "wasm32")))'.dependencies] getrandom = { version = "0.2.2" } [target.wasm32-unknown-unknown.dependencies] js-sys = "0.3.48" wasm-bindgen = "0.2" [dev-dependencies] criterion = "~0.4" serde_json = "~1.0" [[bench]] name = "dice" harness = false