[package]
name = "rand"
version = "0.7.3"
authors = ["The Rand Project Developers", "The Rust Project Developers"]
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/rust-random/rand"
documentation = "https://rust-random.github.io/rand/"
homepage = "https://crates.io/crates/rand"
description = """
Random number generators and other randomness functionality.
"""
keywords = ["random", "rng"]
categories = ["algorithms", "no-std"]
exclude = ["/utils/*", "/.travis.yml", "/appveyor.yml", ".gitignore"]
autobenches = true
edition = "2018"
[badges]
travis-ci = { repository = "rust-random/rand" }
appveyor = { repository = "rust-random/rand" }
[features]
default = ["std"]
nightly = ["simd_support"]
serde1 = []
std = ["rand_core/std", "rand_chacha/std", "alloc", "getrandom", "libc"]
alloc = ["rand_core/alloc"]
wasm-bindgen = ["getrandom_package/wasm-bindgen"]
stdweb = ["getrandom_package/stdweb"]
getrandom = ["getrandom_package", "rand_core/getrandom"]
simd_support = ["packed_simd"]
small_rng = ["rand_pcg"]
[workspace]
members = [
"rand_core",
"rand_distr",
"rand_chacha",
"rand_hc",
"rand_pcg",
"tests/wasm_bindgen",
]
[dependencies]
rand_core = { path = "rand_core", version = "0.5.1" }
rand_pcg = { path = "rand_pcg", version = "0.2", optional = true }
getrandom_package = { version = "0.1.1", package = "getrandom", optional = true }
log = { version = "0.4.4", optional = true }
[dependencies.packed_simd]
version = "0.3"
optional = true
features = ["into_bits"]
[target.'cfg(unix)'.dependencies]
libc = { version = "0.2.22", optional = true, default-features = false }
[target.'cfg(not(target_os = "emscripten"))'.dependencies]
rand_chacha = { path = "rand_chacha", version = "0.2.1", default-features = false }
[target.'cfg(target_os = "emscripten")'.dependencies]
rand_hc = { path = "rand_hc", version = "0.2" }
[dev-dependencies]
rand_pcg = { path = "rand_pcg", version = "0.2" }
rand_hc = { path = "rand_hc", version = "0.2" }
[package.metadata.docs.rs]
all-features = true