| 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] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.63" |
| 15 |
name = "getrandom" |
| 16 |
version = "0.3.4" |
| 17 |
authors = ["The Rand Project Developers"] |
| 18 |
build = "build.rs" |
| 19 |
exclude = [".*"] |
| 20 |
autolib = false |
| 21 |
autobins = false |
| 22 |
autoexamples = false |
| 23 |
autotests = false |
| 24 |
autobenches = false |
| 25 |
description = "A small cross-platform library for retrieving random data from system source" |
| 26 |
documentation = "https://docs.rs/getrandom" |
| 27 |
readme = "README.md" |
| 28 |
categories = [ |
| 29 |
"os", |
| 30 |
"no-std", |
| 31 |
] |
| 32 |
license = "MIT OR Apache-2.0" |
| 33 |
repository = "https://github.com/rust-random/getrandom" |
| 34 |
|
| 35 |
[package.metadata.docs.rs] |
| 36 |
features = ["std"] |
| 37 |
|
| 38 |
[package.metadata.cross.target.x86_64-unknown-netbsd] |
| 39 |
pre-build = [ |
| 40 |
"mkdir -p /tmp/netbsd", |
| 41 |
"curl -fO https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.3/amd64/binary/sets/base.tar.xz", |
| 42 |
"tar -C /tmp/netbsd -xJf base.tar.xz", |
| 43 |
"cp /tmp/netbsd/usr/lib/libexecinfo.so /usr/local/x86_64-unknown-netbsd/lib", |
| 44 |
"rm base.tar.xz", |
| 45 |
"rm -rf /tmp/netbsd", |
| 46 |
] |
| 47 |
|
| 48 |
[features] |
| 49 |
std = [] |
| 50 |
wasm_js = [ |
| 51 |
"dep:wasm-bindgen", |
| 52 |
"dep:js-sys", |
| 53 |
] |
| 54 |
|
| 55 |
[lib] |
| 56 |
name = "getrandom" |
| 57 |
path = "src/lib.rs" |
| 58 |
|
| 59 |
[[test]] |
| 60 |
name = "mod" |
| 61 |
path = "tests/mod.rs" |
| 62 |
|
| 63 |
[[bench]] |
| 64 |
name = "buffer" |
| 65 |
path = "benches/buffer.rs" |
| 66 |
|
| 67 |
[dependencies.cfg-if] |
| 68 |
version = "1" |
| 69 |
|
| 70 |
[target.'cfg(all(any(target_os = "linux", target_os = "android"), not(any(all(target_os = "linux", target_env = ""), getrandom_backend = "custom", getrandom_backend = "linux_raw", getrandom_backend = "rdrand", getrandom_backend = "rndr"))))'.dependencies.libc] |
| 71 |
version = "0.2.154" |
| 72 |
default-features = false |
| 73 |
|
| 74 |
[target.'cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))'.dependencies.wasm-bindgen] |
| 75 |
version = "0.2.98" |
| 76 |
optional = true |
| 77 |
default-features = false |
| 78 |
|
| 79 |
[target.'cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))'.dev-dependencies.wasm-bindgen-test] |
| 80 |
version = "0.3" |
| 81 |
|
| 82 |
[target.'cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"), target_feature = "atomics"))'.dependencies.js-sys] |
| 83 |
version = "0.3.77" |
| 84 |
optional = true |
| 85 |
default-features = false |
| 86 |
|
| 87 |
[target.'cfg(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2"))'.dependencies.wasip2] |
| 88 |
version = "1" |
| 89 |
default-features = false |
| 90 |
|
| 91 |
[target.'cfg(all(target_os = "uefi", getrandom_backend = "efi_rng"))'.dependencies.r-efi] |
| 92 |
version = "5.1" |
| 93 |
default-features = false |
| 94 |
|
| 95 |
[target.'cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "hurd", target_os = "illumos", target_os = "cygwin", all(target_os = "horizon", target_arch = "arm")))'.dependencies.libc] |
| 96 |
version = "0.2.154" |
| 97 |
default-features = false |
| 98 |
|
| 99 |
[target.'cfg(any(target_os = "haiku", target_os = "redox", target_os = "nto", target_os = "aix"))'.dependencies.libc] |
| 100 |
version = "0.2.154" |
| 101 |
default-features = false |
| 102 |
|
| 103 |
[target.'cfg(any(target_os = "ios", target_os = "visionos", target_os = "watchos", target_os = "tvos"))'.dependencies.libc] |
| 104 |
version = "0.2.154" |
| 105 |
default-features = false |
| 106 |
|
| 107 |
[target.'cfg(any(target_os = "macos", target_os = "openbsd", target_os = "vita", target_os = "emscripten"))'.dependencies.libc] |
| 108 |
version = "0.2.154" |
| 109 |
default-features = false |
| 110 |
|
| 111 |
[target.'cfg(target_os = "netbsd")'.dependencies.libc] |
| 112 |
version = "0.2.154" |
| 113 |
default-features = false |
| 114 |
|
| 115 |
[target.'cfg(target_os = "solaris")'.dependencies.libc] |
| 116 |
version = "0.2.154" |
| 117 |
default-features = false |
| 118 |
|
| 119 |
[target.'cfg(target_os = "vxworks")'.dependencies.libc] |
| 120 |
version = "0.2.154" |
| 121 |
default-features = false |
| 122 |
|
| 123 |
[lints.rust.unexpected_cfgs] |
| 124 |
level = "warn" |
| 125 |
priority = 0 |
| 126 |
check-cfg = [ |
| 127 |
'cfg(getrandom_backend, values("custom", "efi_rng", "rdrand", "rndr", "linux_getrandom", "linux_raw", "wasm_js", "windows_legacy", "unsupported"))', |
| 128 |
"cfg(getrandom_msan)", |
| 129 |
"cfg(getrandom_test_linux_fallback)", |
| 130 |
"cfg(getrandom_test_linux_without_fallback)", |
| 131 |
"cfg(getrandom_test_netbsd_fallback)", |
| 132 |
'cfg(target_os, values("cygwin"))', |
| 133 |
] |