rand/Cargo.toml

81 lines
2.6 KiB
TOML
Raw Normal View History

[package]
name = "rand"
2024-03-18 19:08:37 +00:00
version = "0.9.0-alpha.1"
authors = ["The Rand Project Developers", "The Rust Project Developers"]
2019-08-08 11:44:35 +03:00
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/rust-random/rand"
2020-12-15 10:08:34 +00:00
documentation = "https://docs.rs/rand"
2020-12-15 10:13:17 +00:00
homepage = "https://rust-random.github.io/book"
description = """
Random number generators and other randomness functionality.
"""
keywords = ["random", "rng"]
2018-03-27 13:59:28 +02:00
categories = ["algorithms", "no-std"]
autobenches = true
edition = "2021"
2024-03-22 12:33:33 +00:00
rust-version = "1.61"
Reduce packaged crate size by 5kb using `cargo diet -r` (#983) * Reduce packaged crate size by 5kb using `cargo diet -r` It converted excludes into includes, removing the following files from the package. ┌───────────────────────────────────────────┬─────────────┐ │ File │ Size (Byte) │ ├───────────────────────────────────────────┼─────────────┤ │ .gitignore │ 77 │ │ .github/ISSUE_TEMPLATE/other.md │ 80 │ │ .github/ISSUE_TEMPLATE/feature_request.md │ 274 │ │ .github/ISSUE_TEMPLATE/compile-issue.md │ 488 │ │ utils/ci/install_cargo_web.sh │ 536 │ │ COPYRIGHT │ 569 │ │ utils/ci/miri.sh │ 815 │ │ rustfmt.toml │ 863 │ │ benches/weighted.rs │ 1088 │ │ utils/ci/install.sh │ 1381 │ │ utils/ci/script.sh │ 1583 │ │ examples/monte-carlo.rs │ 1611 │ │ appveyor.yml │ 2098 │ │ SECURITY.md │ 2822 │ │ .travis.yml │ 2952 │ │ utils/ziggurat_tables.py │ 3929 │ │ examples/monty-hall.rs │ 4004 │ │ benches/misc.rs │ 4524 │ │ benches/seq.rs │ 5410 │ │ benches/generators.rs │ 5490 │ └───────────────────────────────────────────┴─────────────┘ * Include COPIRIGHT in package * Ignore benchmarks and tests in rand_distr * prefer using 'src/' instead of 'src/**/*'
2020-05-31 23:18:05 +08:00
include = ["src/", "LICENSE-*", "README.md", "CHANGELOG.md", "COPYRIGHT"]
2021-08-17 09:55:53 +01:00
[package.metadata.docs.rs]
# To build locally:
# RUSTDOCFLAGS="--cfg doc_cfg -Zunstable-options --generate-link-to-definition" cargo +nightly doc --all --all-features --no-deps --open
2021-08-17 09:55:53 +01:00
all-features = true
rustdoc-args = ["--cfg", "doc_cfg", "-Zunstable-options", "--generate-link-to-definition"]
2021-08-17 09:55:53 +01:00
[package.metadata.playground]
features = ["small_rng", "serde1"]
2017-02-26 11:04:13 +01:00
[features]
2019-05-07 09:57:43 +01:00
# Meta-features:
default = ["std", "std_rng", "getrandom"]
nightly = [] # some additions requiring nightly Rust
serde1 = ["serde", "rand_core/serde1"]
2019-05-07 09:57:43 +01:00
2020-03-10 12:14:36 +00:00
# Option (enabled by default): without "std" rand uses libcore; this option
# enables functionality expected to be available on a standard platform.
std = ["rand_core/std", "rand_chacha?/std", "alloc"]
2020-03-09 15:22:13 +00:00
# Option: "alloc" enables support for Vec and Box when not using "std"
alloc = ["rand_core/alloc"]
# Option: use getrandom package for seeding
getrandom = ["rand_core/getrandom"]
2017-02-26 11:04:13 +01:00
# Option (requires nightly Rust): experimental SIMD support
2023-10-29 15:23:48 -04:00
simd_support = ["zerocopy/simd-nightly"]
2020-03-09 15:22:13 +00:00
2020-03-10 12:14:36 +00:00
# Option (enabled by default): enable StdRng
std_rng = ["rand_chacha"]
2020-03-09 15:22:13 +00:00
# Option: enable SmallRng
small_rng = []
2019-05-07 09:57:43 +01:00
# Option: use unbiased sampling for algorithms supporting this option: Uniform distribution.
# By default, bias affecting no more than one in 2^48 samples is accepted.
# Note: enabling this option is expected to affect reproducibility of results.
unbiased = []
2018-03-27 13:59:28 +02:00
[workspace]
2018-12-29 15:29:51 +00:00
members = [
2024-04-27 08:40:53 +01:00
"benches",
2018-12-29 15:29:51 +00:00
"rand_core",
"rand_distr",
2018-12-29 15:29:51 +00:00
"rand_chacha",
"rand_pcg",
]
2018-01-21 20:41:18 -08:00
2018-03-27 13:59:28 +02:00
[dependencies]
2024-03-18 19:08:37 +00:00
rand_core = { path = "rand_core", version = "=0.9.0-alpha.1", default-features = false }
log = { version = "0.4.4", optional = true }
serde = { version = "1.0.103", features = ["derive"], optional = true }
2024-03-18 19:08:37 +00:00
rand_chacha = { path = "rand_chacha", version = "=0.9.0-alpha.1", default-features = false, optional = true }
zerocopy = { version = "=0.8.0-alpha.6", default-features = false, features = ["simd"] }
2018-01-21 20:41:18 -08:00
[dev-dependencies]
2024-03-18 19:08:37 +00:00
rand_pcg = { path = "rand_pcg", version = "=0.9.0-alpha.1" }
# Only to test serde1
bincode = "1.2.1"
2024-04-27 08:29:54 +01:00
rayon = "1.7"
rayon-core = "1.11"