| 1 |
[package] |
| 2 |
name = "rand_core" |
| 3 |
version = "0.9.3" |
| 4 |
authors = ["The Rand Project Developers", "The Rust Project Developers"] |
| 5 |
license = "MIT OR Apache-2.0" |
| 6 |
readme = "README.md" |
| 7 |
repository = "https://github.com/rust-random/rand" |
| 8 |
documentation = "https://docs.rs/rand_core" |
| 9 |
homepage = "https://rust-random.github.io/book" |
| 10 |
description = """ |
| 11 |
Core random number generator traits and tools for implementation. |
| 12 |
""" |
| 13 |
keywords = ["random", "rng"] |
| 14 |
categories = ["algorithms", "no-std"] |
| 15 |
edition = "2021" |
| 16 |
rust-version = "1.63" |
| 17 |
|
| 18 |
[package.metadata.docs.rs] |
| 19 |
# To build locally: |
| 20 |
# RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps --open |
| 21 |
all-features = true |
| 22 |
rustdoc-args = ["--generate-link-to-definition"] |
| 23 |
|
| 24 |
[package.metadata.playground] |
| 25 |
all-features = true |
| 26 |
|
| 27 |
[features] |
| 28 |
std = ["getrandom?/std"] |
| 29 |
os_rng = ["dep:getrandom"] |
| 30 |
serde = ["dep:serde"] # enables serde for BlockRng wrapper |
| 31 |
|
| 32 |
[dependencies] |
| 33 |
serde = { version = "1", features = ["derive"], optional = true } |
| 34 |
getrandom = { version = "0.3.0", optional = true } |