| 1 | [package] |
| 2 | name = "rand_core" |
| 3 | version = "0.6.4" |
| 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 = "2018" |
| 16 | |
| 17 | [package.metadata.docs.rs] |
| 18 | # To build locally: |
| 19 | # RUSTDOCFLAGS="--cfg doc_cfg" cargo +nightly doc --all-features --no-deps --open |
| 20 | all-features = true |
| 21 | rustdoc-args = ["--cfg" , "doc_cfg" ] |
| 22 | |
| 23 | [package.metadata.playground] |
| 24 | all-features = true |
| 25 | |
| 26 | [features] |
| 27 | std = ["alloc" , "getrandom" , "getrandom/std" ] # use std library; should be default but for above bug |
| 28 | alloc = [] # enables Vec and Box support without std |
| 29 | serde1 = ["serde" ] # enables serde for BlockRng wrapper |
| 30 | |
| 31 | [dependencies] |
| 32 | serde = { version = "1" , features = ["derive" ], optional = true } |
| 33 | getrandom = { version = "0.2" , optional = true } |
| 34 | |