[package]
edition = "2021"
rust-version = "1.75"
name = "mod-rand"
version = "1.0.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tiered randomness for Rust: fast PRNG, process-unique seeds, and OS-backed cryptographic random — plus bounded ranges, strings, tokens, shuffle, sample, and weighted choice. Zero dependencies, MSRV 1.75."
homepage = "https://github.com/jamesgober/mod-rand"
documentation = "https://docs.rs/mod-rand"
readme = "README.md"
keywords = [
"random",
"rng",
"prng",
"crypto",
"uuid",
]
categories = [
"algorithms",
"cryptography",
"no-std",
]
license = "Apache-2.0"
repository = "https://github.com/jamesgober/mod-rand"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = [
"std",
"tier2",
"tier3",
]
std = []
tier2 = ["std"]
tier3 = ["std"]
[lib]
name = "mod_rand"
path = "src/lib.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "bounded_ranges"
path = "examples/bounded_ranges.rs"
[[example]]
name = "tier1_simulation"
path = "examples/tier1_simulation.rs"
[[example]]
name = "tier2_tempdir"
path = "examples/tier2_tempdir.rs"
[[example]]
name = "tier3_token"
path = "examples/tier3_token.rs"
[[test]]
name = "collections"
path = "tests/collections.rs"
[[test]]
name = "concurrency"
path = "tests/concurrency.rs"
[[test]]
name = "distribution"
path = "tests/distribution.rs"
[[test]]
name = "kat"
path = "tests/kat.rs"
[[test]]
name = "range"
path = "tests/range.rs"
[[test]]
name = "smoke"
path = "tests/smoke.rs"
[[test]]
name = "statistical"
path = "tests/statistical.rs"
[[test]]
name = "strings"
path = "tests/strings.rs"
[[test]]
name = "widths"
path = "tests/widths.rs"
[[bench]]
name = "common"
path = "benches/common.rs"
[[bench]]
name = "tier1"
path = "benches/tier1.rs"
harness = false
[[bench]]
name = "tier2"
path = "benches/tier2.rs"
harness = false
required-features = ["tier2"]
[[bench]]
name = "tier3"
path = "benches/tier3.rs"
harness = false
required-features = ["tier3"]
[dependencies]
[dev-dependencies]
[profile.release]
opt-level = 3
lto = "thin"