getrandom/Cargo.toml

53 lines
1.6 KiB
TOML
Raw Normal View History

2019-01-19 12:56:20 +00:00
[package]
name = "getrandom"
version = "0.2.1"
2019-03-22 20:28:33 +03:00
edition = "2018"
2019-01-19 12:56:20 +00:00
authors = ["The Rand Project Developers"]
2019-02-04 20:57:30 +03:00
license = "MIT OR Apache-2.0"
2019-03-16 15:37:43 +00:00
description = "A small cross-platform library for retrieving random data from system source"
documentation = "https://docs.rs/getrandom"
repository = "https://github.com/rust-random/getrandom"
categories = ["os", "no-std"]
exclude = [".*"]
2019-02-04 20:57:30 +03:00
2019-03-12 17:39:20 +00:00
[dependencies]
2020-10-12 11:13:19 -07:00
cfg-if = "1"
2019-03-12 17:39:20 +00:00
2019-08-06 03:08:16 -07:00
# When built as part of libstd
compiler_builtins = { version = "0.1", optional = true }
core = { version = "1.0", optional = true, package = "rustc-std-workspace-core" }
2019-10-23 09:35:50 +00:00
[target.'cfg(unix)'.dependencies]
libc = { version = "0.2.64", default-features = false }
2019-02-05 13:00:43 +03:00
2019-08-08 08:02:19 +00:00
[target.'cfg(target_os = "wasi")'.dependencies]
wasi = "0.10"
2019-08-08 08:02:19 +00:00
2021-01-02 13:54:25 +03:00
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
wasm-bindgen = { version = "0.2.62", default-features = false, optional = true }
js-sys = { version = "0.3", optional = true }
2021-01-02 13:54:25 +03:00
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies]
wasm-bindgen-test = "0.3.18"
2019-03-22 20:28:33 +03:00
[features]
# Implement std-only traits for getrandom::Error
2019-03-22 20:28:33 +03:00
std = []
# Feature to enable fallback RDRAND-based implementation on x86/x86_64
rdrand = []
# Feature to enable JavaScript bindings on wasm32-unknown-unknown
2021-01-02 13:54:25 +03:00
js = ["wasm-bindgen", "js-sys"]
2019-10-26 02:32:16 -07:00
# Feature to enable custom RNG implementations
custom = []
2019-08-14 13:55:27 +00:00
# Unstable feature to support being a libstd dependency
rustc-dep-of-std = [
"compiler_builtins",
"core",
"libc/rustc-dep-of-std",
"wasi/rustc-dep-of-std",
]
# Unstable/test-only feature to run wasm-bindgen tests in a browser
test-in-browser = []
[package.metadata.docs.rs]
2019-10-26 02:32:16 -07:00
features = ["std", "custom"]