[[bench]]
name = "buffer"
path = "benches/buffer.rs"
[dependencies.cfg-if]
version = "1"
[dependencies.compiler_builtins]
optional = true
version = "0.1"
[dependencies.core]
optional = true
package = "rustc-std-workspace-core"
version = "1.0"
[features]
rustc-dep-of-std = ["dep:compiler_builtins", "dep:core"]
std = []
wasm_js = ["dep:wasm-bindgen", "dep:js-sys"]
[lib]
name = "getrandom"
path = "src/lib.rs"
[lints.rust.unexpected_cfgs]
check-cfg = ['cfg(getrandom_backend, values("custom", "rdrand", "rndr", "linux_getrandom", "wasm_js"))', "cfg(getrandom_msan)", "cfg(getrandom_test_linux_fallback)", "cfg(getrandom_test_netbsd_fallback)"]
level = "warn"
priority = 0
[package]
authors = ["The Rand Project Developers"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = "build.rs"
categories = ["os", "no-std"]
description = "A small cross-platform library for retrieving random data from system source"
documentation = "https://docs.rs/getrandom"
edition = "2021"
exclude = [".*"]
license = "MIT OR Apache-2.0"
name = "getrandom"
readme = "README.md"
repository = "https://github.com/rust-random/getrandom"
rust-version = "1.63"
version = "0.3.0"
[package.metadata.cross.target.x86_64-unknown-netbsd]
pre-build = ["mkdir -p /tmp/netbsd", "curl -fO https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.3/amd64/binary/sets/base.tar.xz", "tar -C /tmp/netbsd -xJf base.tar.xz", "cp /tmp/netbsd/usr/lib/libexecinfo.so /usr/local/x86_64-unknown-netbsd/lib", "rm base.tar.xz", "rm -rf /tmp/netbsd"]
[package.metadata.docs.rs]
features = ["std"]
[target.'cfg(all(any(target_os = "linux", target_os = "android"), not(any(target_env = "", getrandom_backend = "custom"))))'.dependencies.libc]
default-features = false
version = "0.2.154"
[target.'cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))'.dependencies.wasm-bindgen]
default-features = false
optional = true
version = "0.2.98"
[target.'cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))'.dev-dependencies.wasm-bindgen-test]
version = "0.3"
[target.'cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"), target_feature = "atomics"))'.dependencies.js-sys]
default-features = false
optional = true
version = "0.3.77"
[target.'cfg(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2"))'.dependencies.wasi]
default-features = false
version = "0.13"
[target.'cfg(all(windows, not(target_vendor = "win7")))'.dependencies.windows-targets]
version = "0.52"
[target.'cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "hurd", target_os = "illumos", all(target_os = "horizon", target_arch = "arm")))'.dependencies.libc]
default-features = false
version = "0.2.154"
[target.'cfg(any(target_os = "haiku", target_os = "redox", target_os = "nto", target_os = "aix"))'.dependencies.libc]
default-features = false
version = "0.2.154"
[target.'cfg(any(target_os = "ios", target_os = "visionos", target_os = "watchos", target_os = "tvos"))'.dependencies.libc]
default-features = false
version = "0.2.154"
[target.'cfg(any(target_os = "macos", target_os = "openbsd", target_os = "vita", target_os = "emscripten"))'.dependencies.libc]
default-features = false
version = "0.2.154"
[target.'cfg(target_os = "netbsd")'.dependencies.libc]
default-features = false
version = "0.2.154"
[target.'cfg(target_os = "solaris")'.dependencies.libc]
default-features = false
version = "0.2.154"
[target.'cfg(target_os = "vxworks")'.dependencies.libc]
default-features = false
version = "0.2.154"
[[test]]
name = "mod"
path = "tests/mod.rs"