| [package] |
| name = "rand_core" |
| version = "0.6.2" |
| 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://docs.rs/rand_core" |
| homepage = "https://rust-random.github.io/book" |
| description = """ |
| Core random number generator traits and tools for implementation. |
| """ |
| keywords = ["random", "rng"] |
| categories = ["algorithms", "no-std"] |
| edition = "2018" |
| |
| [features] |
| std = ["alloc", "getrandom", "getrandom/std"] # use std library; should be default but for above bug |
| alloc = [] # enables Vec and Box support without std |
| serde1 = ["serde"] # enables serde for BlockRng wrapper |
| |
| [dependencies] |
| serde = { version = "1", features = ["derive"], optional = true } |
| getrandom = { version = "0.2", optional = true } |
| |
| [package.metadata.docs.rs] |
| # To build locally: |
| # RUSTDOCFLAGS="--cfg doc_cfg" cargo +nightly doc --all-features --no-deps --open |
| all-features = true |
| rustdoc-args = ["--cfg", "doc_cfg"] |
| |
| [package.metadata.playground] |
| all-features = true |