getrandom/Cargo.toml

53 lines
1.9 KiB
TOML
Raw Normal View History

2019-01-19 12:56:20 +00:00
[package]
name = "getrandom"
version = "0.2.0"
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 = ["utils/*", ".*", "appveyor.yml"]
2019-01-19 12:56:20 +00:00
2019-02-04 20:57:30 +03:00
[badges]
travis-ci = { repository = "rust-random/getrandom" }
appveyor = { repository = "rust-random/getrandom" }
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
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown", cargo_web))'.dependencies]
stdweb = { version = "0.4.18", default-features = false, optional = true }
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown", not(cargo_web)))'.dependencies]
wasm-bindgen = { version = "0.2.62", default-features = false, optional = true }
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown", not(cargo_web)))'.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
js = ["stdweb", "wasm-bindgen"]
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
2019-08-06 03:08:16 -07:00
rustc-dep-of-std = ["compiler_builtins", "core"]
# 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"]