1[package] 2name = "rand_core" 3version = "0.6.4" 4authors = ["The Rand Project Developers", "The Rust Project Developers"] 5license = "MIT OR Apache-2.0" 6readme = "README.md" 7repository = "https://github.com/rust-random/rand" 8documentation = "https://docs.rs/rand_core" 9homepage = "https://rust-random.github.io/book" 10description = """ 11Core random number generator traits and tools for implementation. 12""" 13keywords = ["random", "rng"] 14categories = ["algorithms", "no-std"] 15edition = "2018" 16 17[package.metadata.docs.rs] 18# To build locally: 19# RUSTDOCFLAGS="--cfg doc_cfg" cargo +nightly doc --all-features --no-deps --open 20all-features = true 21rustdoc-args = ["--cfg", "doc_cfg"] 22 23[package.metadata.playground] 24all-features = true 25 26[features] 27std = ["alloc", "getrandom", "getrandom/std"] # use std library; should be default but for above bug 28alloc = [] # enables Vec and Box support without std 29serde1 = ["serde"] # enables serde for BlockRng wrapper 30 31[dependencies] 32serde = { version = "1", features = ["derive"], optional = true } 33getrandom = { version = "0.2", optional = true } 34