Joel Galenson | 73ce1c6 | 2020-07-07 13:36:47 -0700 | [diff] [blame] | 1 | [package] |
| 2 | name = "rand_core" |
Joel Galenson | fe04fdc | 2021-06-21 13:57:05 -0700 | [diff] [blame] | 3 | version = "0.6.3" |
Joel Galenson | 73ce1c6 | 2020-07-07 13:36:47 -0700 | [diff] [blame] | 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" |
Haibo Huang | cf398cf | 2021-02-17 19:59:18 -0800 | [diff] [blame] | 8 | documentation = "https://docs.rs/rand_core" |
| 9 | homepage = "https://rust-random.github.io/book" |
Joel Galenson | 73ce1c6 | 2020-07-07 13:36:47 -0700 | [diff] [blame] | 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 | |
Joel Galenson | 73ce1c6 | 2020-07-07 13:36:47 -0700 | [diff] [blame] | 17 | [features] |
| 18 | std = ["alloc", "getrandom", "getrandom/std"] # use std library; should be default but for above bug |
| 19 | alloc = [] # enables Vec and Box support without std |
| 20 | serde1 = ["serde"] # enables serde for BlockRng wrapper |
| 21 | |
| 22 | [dependencies] |
| 23 | serde = { version = "1", features = ["derive"], optional = true } |
Haibo Huang | c727dca | 2020-12-15 16:12:23 -0800 | [diff] [blame] | 24 | getrandom = { version = "0.2", optional = true } |
| 25 | |
| 26 | [package.metadata.docs.rs] |
| 27 | # To build locally: |
| 28 | # RUSTDOCFLAGS="--cfg doc_cfg" cargo +nightly doc --all-features --no-deps --open |
| 29 | all-features = true |
| 30 | rustdoc-args = ["--cfg", "doc_cfg"] |
Haibo Huang | cf398cf | 2021-02-17 19:59:18 -0800 | [diff] [blame] | 31 | |
| 32 | [package.metadata.playground] |
| 33 | all-features = true |