| [package] |
| name = "rand" |
| version = "0.5.0-pre.0" |
| authors = ["The Rust Project Developers"] |
| license = "MIT/Apache-2.0" |
| readme = "README.md" |
| repository = "https://github.com/rust-lang-nursery/rand" |
| documentation = "https://docs.rs/rand" |
| homepage = "https://crates.io/crates/rand" |
| description = """ |
| Random number generators and other randomness functionality. |
| """ |
| keywords = ["random", "rng"] |
| categories = ["algorithms", "no_std"] |
| |
| [badges] |
| travis-ci = { repository = "rust-lang-nursery/rand" } |
| appveyor = { repository = "alexcrichton/rand" } |
| |
| [features] |
| default = ["std"] |
| nightly = ["i128_support"] # enables all features requiring nightly rust |
| |
| std = ["rand_core/std", "winapi", "libc", "alloc"] # default feature; without this rand uses libcore |
| alloc = ["rand_core/alloc"] # enables Vec and Box support (without std) |
| |
| i128_support = [] # enables i128 and u128 support |
| |
| serde-1 = ["serde", "serde_derive"] |
| |
| |
| [target.'cfg(unix)'.dependencies] |
| libc = { version = "0.2", optional = true } |
| |
| [target.'cfg(windows)'.dependencies] |
| winapi = { version = "0.3", features = ["minwindef", "ntsecapi", "profileapi", "winnt"], optional = true } |
| |
| [dependencies] |
| rand_core = { version = '0.1.0-pre.0', default-features = false } |
| |
| log = { version = "0.4", optional = true } |
| serde = {version="1", optional=true} |
| serde_derive = {version="1", optional=true} |
| stdweb = {version="0.4", optional=true} |
| |
| |
| [workspace] |
| members = ["rand_core"] |
| |
| [dev-dependencies] |
| # This is for testing serde, unfortunately |
| # we can't specify feature-gated dev deps yet, |
| # see: https://github.com/rust-lang/cargo/issues/1596 |
| bincode = "1.0" |
| |
| [target.'cfg(target_os = "cloudabi")'.dependencies] |
| cloudabi = "0.0.3" |
| |
| [target.'cfg(target_os = "fuchsia")'.dependencies] |
| fuchsia-zircon = "0.3.2" |