2019-01-19 12:56:20 +00:00
|
|
|
[package]
|
|
|
|
name = "getrandom"
|
2022-06-13 14:31:59 -07:00
|
|
|
version = "0.2.7" # Also update html_root_url in lib.rs when bumping this
|
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"]
|
2021-01-04 07:43:15 +03:00
|
|
|
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]
|
2022-03-25 09:26:05 -07:00
|
|
|
libc = { version = "0.2.120", 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]
|
2022-04-15 11:20:44 +02:00
|
|
|
wasi = "0.11"
|
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]
|
2020-05-28 02:01:12 -07:00
|
|
|
wasm-bindgen = { version = "0.2.62", default-features = false, optional = true }
|
2020-10-26 22:41:31 +02:00
|
|
|
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]
|
2020-09-09 00:03:50 -07:00
|
|
|
wasm-bindgen-test = "0.3.18"
|
2020-05-28 02:01:12 -07:00
|
|
|
|
2019-03-22 20:28:33 +03:00
|
|
|
[features]
|
2020-05-25 03:03:21 -07:00
|
|
|
# Implement std-only traits for getrandom::Error
|
2019-03-22 20:28:33 +03:00
|
|
|
std = []
|
2020-05-25 03:03:21 -07:00
|
|
|
# Feature to enable fallback RDRAND-based implementation on x86/x86_64
|
2020-05-28 17:10:06 -07:00
|
|
|
rdrand = []
|
2020-05-28 02:01:12 -07:00
|
|
|
# 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
|
2021-01-14 01:46:02 -08:00
|
|
|
rustc-dep-of-std = [
|
|
|
|
"compiler_builtins",
|
|
|
|
"core",
|
|
|
|
"libc/rustc-dep-of-std",
|
|
|
|
"wasi/rustc-dep-of-std",
|
|
|
|
]
|
2020-05-25 03:03:21 -07:00
|
|
|
# Unstable/test-only feature to run wasm-bindgen tests in a browser
|
2020-05-28 02:03:15 -07:00
|
|
|
test-in-browser = []
|
|
|
|
|
2019-10-28 01:06:05 -07:00
|
|
|
[package.metadata.docs.rs]
|
2019-10-26 02:32:16 -07:00
|
|
|
features = ["std", "custom"]
|
2021-01-18 01:00:23 +03:00
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|