2015-02-03 16:57:35 +11:00
|
|
|
[package]
|
|
|
|
name = "rand"
|
2018-08-06 19:05:15 +01:00
|
|
|
version = "0.5.5" # NB: When modifying, also modify html_root_url in lib.rs
|
2018-09-17 10:06:28 +01:00
|
|
|
authors = ["The Rand Project Developers", "The Rust Project Developers"]
|
2015-02-03 16:57:35 +11:00
|
|
|
license = "MIT/Apache-2.0"
|
|
|
|
readme = "README.md"
|
2018-08-13 18:00:37 +01:00
|
|
|
repository = "https://github.com/rust-random/rand"
|
2017-06-14 12:24:12 -07:00
|
|
|
documentation = "https://docs.rs/rand"
|
2018-03-20 15:30:32 +00:00
|
|
|
homepage = "https://crates.io/crates/rand"
|
2015-02-03 16:57:35 +11:00
|
|
|
description = """
|
|
|
|
Random number generators and other randomness functionality.
|
|
|
|
"""
|
2015-09-03 17:36:44 -06:00
|
|
|
keywords = ["random", "rng"]
|
2018-03-27 13:59:28 +02:00
|
|
|
categories = ["algorithms", "no-std"]
|
2018-07-23 13:45:26 +02:00
|
|
|
build = "build.rs"
|
2015-02-03 16:57:35 +11:00
|
|
|
|
2018-03-25 10:29:41 +02:00
|
|
|
[badges]
|
2018-08-13 18:00:37 +01:00
|
|
|
travis-ci = { repository = "rust-random/rand" }
|
|
|
|
appveyor = { repository = "dhardy/rand" }
|
2015-02-03 16:57:35 +11:00
|
|
|
|
2017-02-26 11:04:13 +01:00
|
|
|
[features]
|
2018-03-27 13:59:28 +02:00
|
|
|
default = ["std" ] # without "std" rand uses libcore
|
2018-07-27 16:05:48 +02:00
|
|
|
nightly = ["simd_support"] # enables all features requiring nightly rust
|
2018-03-27 13:59:28 +02:00
|
|
|
std = ["rand_core/std", "alloc", "libc", "winapi", "cloudabi", "fuchsia-zircon"]
|
2018-03-25 19:36:30 +02:00
|
|
|
alloc = ["rand_core/alloc"] # enables Vec and Box support (without std)
|
2017-12-14 16:36:28 +00:00
|
|
|
i128_support = [] # enables i128 and u128 support
|
2018-07-18 22:25:13 +00:00
|
|
|
simd_support = ["packed_simd"] # enables SIMD support
|
2018-07-20 16:25:56 +02:00
|
|
|
serde1 = ["rand_core/serde1", "rand_isaac/serde1", "rand_xorshift/serde1"] # enables serialization for PRNGs
|
2017-02-26 11:04:13 +01:00
|
|
|
|
2018-03-27 13:59:28 +02:00
|
|
|
[workspace]
|
2018-07-16 16:12:21 +02:00
|
|
|
members = ["rand_core", "rand_isaac", "rand_xorshift"]
|
2018-01-21 20:41:18 -08:00
|
|
|
|
2018-03-27 13:59:28 +02:00
|
|
|
[dependencies]
|
2018-05-21 15:18:37 +02:00
|
|
|
rand_core = { path = "rand_core", version = "0.2", default-features = false }
|
2018-07-12 16:14:37 +01:00
|
|
|
# only for deprecations and benches:
|
2018-07-20 15:44:15 +02:00
|
|
|
rand_isaac = { path = "rand_isaac", version = "0.1" }
|
|
|
|
rand_xorshift = { path = "rand_xorshift", version = "0.1" }
|
2018-03-27 13:59:28 +02:00
|
|
|
log = { version = "0.4", optional = true }
|
2018-09-10 19:24:31 +01:00
|
|
|
|
|
|
|
[dependencies.packed_simd]
|
|
|
|
# NOTE: so far no version works reliably due to dependence on unstable features
|
2018-09-12 10:34:29 +01:00
|
|
|
version = "0.3"
|
2018-09-10 19:24:31 +01:00
|
|
|
# git = "https://github.com/rust-lang-nursery/packed_simd"
|
|
|
|
optional = true
|
|
|
|
features = ["into_bits"]
|
2018-01-21 20:41:18 -08:00
|
|
|
|
2017-11-10 14:25:31 -05:00
|
|
|
[target.'cfg(unix)'.dependencies]
|
2017-12-14 16:36:28 +00:00
|
|
|
libc = { version = "0.2", optional = true }
|
2015-02-03 22:28:01 +11:00
|
|
|
|
2017-11-10 14:25:31 -05:00
|
|
|
[target.'cfg(windows)'.dependencies]
|
2018-01-17 20:23:24 -05:00
|
|
|
winapi = { version = "0.3", features = ["minwindef", "ntsecapi", "profileapi", "winnt"], optional = true }
|
2017-11-10 14:25:31 -05:00
|
|
|
|
2018-03-27 13:59:28 +02:00
|
|
|
[target.'cfg(target_os = "cloudabi")'.dependencies]
|
|
|
|
cloudabi = { version = "0.0.3", optional = true }
|
2018-01-21 20:41:18 -08:00
|
|
|
|
2018-03-27 13:59:28 +02:00
|
|
|
[target.'cfg(target_os = "fuchsia")'.dependencies]
|
|
|
|
fuchsia-zircon = { version = "0.3.2", optional = true }
|
2018-03-08 11:54:13 +00:00
|
|
|
|
2018-03-28 20:19:21 +02:00
|
|
|
[target.wasm32-unknown-unknown.dependencies]
|
|
|
|
# use with `--target wasm32-unknown-unknown --features=stdweb`
|
|
|
|
stdweb = { version = "0.4", optional = true }
|
2018-07-20 07:25:31 +02:00
|
|
|
wasm-bindgen = { version = "0.2.12", optional = true }
|
2018-03-28 20:19:21 +02:00
|
|
|
|
2018-01-21 20:41:18 -08:00
|
|
|
[dev-dependencies]
|
2018-07-24 18:45:08 +02:00
|
|
|
# This has a histogram implementation used for testing uniformity.
|
|
|
|
average = "0.9.2"
|
|
|
|
|
2018-07-23 13:45:26 +02:00
|
|
|
[build-dependencies]
|
|
|
|
rustc_version = "0.2"
|
2018-04-02 09:36:40 +02:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|