[dependencies.log]
optional = true
version = "0.4.4"
[dependencies.rand_chacha]
default-features = false
optional = true
version = "0.9.0"
[dependencies.rand_core]
default-features = false
version = "0.9.0"
[dependencies.serde]
features = ["derive"]
optional = true
version = "1.0.103"
[dependencies.zerocopy]
default-features = false
features = ["simd"]
version = "0.8.0"
[dev-dependencies.bincode]
version = "1.2.1"
[dev-dependencies.rand_pcg]
version = "0.9.0"
[dev-dependencies.rayon]
version = "1.7"
[features]
alloc = []
default = ["std", "std_rng", "os_rng", "small_rng", "thread_rng"]
log = ["dep:log"]
nightly = []
os_rng = ["rand_core/os_rng"]
serde = ["dep:serde", "rand_core/serde"]
simd_support = ["zerocopy/simd-nightly"]
small_rng = []
std = ["rand_core/std", "rand_chacha?/std", "alloc"]
std_rng = ["dep:rand_chacha"]
thread_rng = ["std", "std_rng", "os_rng"]
unbiased = []
[lib]
name = "rand"
path = "src/lib.rs"
[package]
authors = ["The Rand Project Developers", "The Rust Project Developers"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["algorithms", "no-std"]
description = """
Random number generators and other randomness functionality.
"""
documentation = "https://docs.rs/rand"
edition = "2021"
homepage = "https://rust-random.github.io/book"
include = ["src/", "LICENSE-*", "README.md", "CHANGELOG.md", "COPYRIGHT"]
keywords = ["random", "rng"]
license = "MIT OR Apache-2.0"
name = "rand"
readme = "README.md"
repository = "https://github.com/rust-random/rand"
rust-version = "1.63"
version = "0.9.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--generate-link-to-definition"]
[package.metadata.playground]
features = ["small_rng", "serde"]