rand/Cargo.toml

73 lines
2.5 KiB
TOML
Raw Normal View History

[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
authors = ["The Rand Project Developers", "The Rust Project Developers"]
license = "MIT/Apache-2.0"
readme = "README.md"
repository = "https://github.com/rust-random/rand"
documentation = "https://docs.rs/rand"
homepage = "https://crates.io/crates/rand"
description = """
Random number generators and other randomness functionality.
"""
keywords = ["random", "rng"]
2018-03-27 13:59:28 +02:00
categories = ["algorithms", "no-std"]
build = "build.rs"
2018-03-25 10:29:41 +02:00
[badges]
travis-ci = { repository = "rust-random/rand" }
appveyor = { repository = "dhardy/rand" }
2017-02-26 11:04:13 +01:00
[features]
2018-03-27 13:59:28 +02:00
default = ["std" ] # without "std" rand uses libcore
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"]
alloc = ["rand_core/alloc"] # enables Vec and Box support (without std)
i128_support = [] # enables i128 and u128 support
2018-07-18 22:25:13 +00:00
simd_support = ["packed_simd"] # enables SIMD support
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]
members = ["rand_core", "rand_isaac", "rand_xorshift"]
2018-01-21 20:41:18 -08:00
2018-03-27 13:59:28 +02:00
[dependencies]
rand_core = { path = "rand_core", version = "0.2", default-features = false }
# only for deprecations and benches:
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 }
[dependencies.packed_simd]
# NOTE: so far no version works reliably due to dependence on unstable features
version = "0.3"
# 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]
libc = { version = "0.2", optional = true }
2017-11-10 14:25:31 -05:00
[target.'cfg(windows)'.dependencies]
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 }
[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-01-21 20:41:18 -08:00
[dev-dependencies]
# This has a histogram implementation used for testing uniformity.
average = "0.9.2"
[build-dependencies]
rustc_version = "0.2"
2018-04-02 09:36:40 +02:00
[package.metadata.docs.rs]
all-features = true