1# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO 2# 3# When uploading crates to the registry Cargo will automatically 4# "normalize" Cargo.toml files for maximal compatibility 5# with all versions of Cargo and also rewrite `path` dependencies 6# to registry (e.g., crates.io) dependencies. 7# 8# If you are reading this file be aware that the original Cargo.toml 9# will likely look very different (and much more reasonable). 10# See Cargo.toml.orig for the original contents. 11 12[package] 13edition = "2018" 14name = "getrandom" 15version = "0.2.15" 16authors = ["The Rand Project Developers"] 17build = false 18exclude = [".*"] 19autobins = false 20autoexamples = false 21autotests = false 22autobenches = false 23description = "A small cross-platform library for retrieving random data from system source" 24documentation = "https://docs.rs/getrandom" 25readme = "README.md" 26categories = [ 27 "os", 28 "no-std", 29] 30license = "MIT OR Apache-2.0" 31repository = "https://github.com/rust-random/getrandom" 32 33[package.metadata.cross.target.x86_64-unknown-netbsd] 34pre-build = [ 35 "mkdir -p /tmp/netbsd", 36 "curl https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.2/amd64/binary/sets/base.tar.xz -O", 37 "tar -C /tmp/netbsd -xJf base.tar.xz", 38 "cp /tmp/netbsd/usr/lib/libexecinfo.so /usr/local/x86_64-unknown-netbsd/lib", 39 "rm base.tar.xz", 40 "rm -rf /tmp/netbsd", 41] 42 43[package.metadata.docs.rs] 44features = [ 45 "std", 46 "custom", 47] 48rustdoc-args = [ 49 "--cfg", 50 "docsrs", 51] 52 53[lib] 54name = "getrandom" 55path = "src/lib.rs" 56 57[[test]] 58name = "custom" 59path = "tests/custom.rs" 60 61[[test]] 62name = "normal" 63path = "tests/normal.rs" 64 65[[test]] 66name = "rdrand" 67path = "tests/rdrand.rs" 68 69[[bench]] 70name = "buffer" 71path = "benches/buffer.rs" 72 73[dependencies.cfg-if] 74version = "1" 75 76[dependencies.compiler_builtins] 77version = "0.1" 78optional = true 79 80[dependencies.core] 81version = "1.0" 82optional = true 83package = "rustc-std-workspace-core" 84 85[features] 86custom = [] 87js = [ 88 "wasm-bindgen", 89 "js-sys", 90] 91linux_disable_fallback = [] 92rdrand = [] 93rustc-dep-of-std = [ 94 "compiler_builtins", 95 "core", 96 "libc/rustc-dep-of-std", 97 "wasi/rustc-dep-of-std", 98] 99std = [] 100test-in-browser = [] 101 102[target."cfg(all(any(target_arch = \"wasm32\", target_arch = \"wasm64\"), target_os = \"unknown\"))".dependencies.js-sys] 103version = "0.3" 104optional = true 105 106[target."cfg(all(any(target_arch = \"wasm32\", target_arch = \"wasm64\"), target_os = \"unknown\"))".dependencies.wasm-bindgen] 107version = "0.2.62" 108optional = true 109default-features = false 110 111[target."cfg(all(any(target_arch = \"wasm32\", target_arch = \"wasm64\"), target_os = \"unknown\"))".dev-dependencies.wasm-bindgen-test] 112version = "0.3.18" 113 114[target."cfg(target_os = \"wasi\")".dependencies.wasi] 115version = "0.11" 116default-features = false 117 118[target."cfg(unix)".dependencies.libc] 119version = "0.2.154" 120default-features = false 121