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.12"
16authors = ["The Rand Project Developers"]
17exclude = [".*"]
18description = "A small cross-platform library for retrieving random data from system source"
19documentation = "https://docs.rs/getrandom"
20readme = "README.md"
21categories = [
22    "os",
23    "no-std",
24]
25license = "MIT OR Apache-2.0"
26repository = "https://github.com/rust-random/getrandom"
27
28[package.metadata.cross.target.x86_64-unknown-netbsd]
29pre-build = [
30    "mkdir -p /tmp/netbsd",
31    "curl https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.2/amd64/binary/sets/base.tar.xz -O",
32    "tar -C /tmp/netbsd -xJf base.tar.xz",
33    "cp /tmp/netbsd/usr/lib/libexecinfo.so /usr/local/x86_64-unknown-netbsd/lib",
34    "rm base.tar.xz",
35    "rm -rf /tmp/netbsd",
36]
37
38[package.metadata.docs.rs]
39features = [
40    "std",
41    "custom",
42]
43rustdoc-args = [
44    "--cfg",
45    "docsrs",
46]
47
48[dependencies.cfg-if]
49version = "1"
50
51[dependencies.compiler_builtins]
52version = "0.1"
53optional = true
54
55[dependencies.core]
56version = "1.0"
57optional = true
58package = "rustc-std-workspace-core"
59
60[features]
61custom = []
62js = [
63    "wasm-bindgen",
64    "js-sys",
65]
66rdrand = []
67rustc-dep-of-std = [
68    "compiler_builtins",
69    "core",
70    "libc/rustc-dep-of-std",
71    "wasi/rustc-dep-of-std",
72]
73std = []
74test-in-browser = []
75
76[target."cfg(all(any(target_arch = \"wasm32\", target_arch = \"wasm64\"), target_os = \"unknown\"))".dependencies.js-sys]
77version = "0.3"
78optional = true
79
80[target."cfg(all(any(target_arch = \"wasm32\", target_arch = \"wasm64\"), target_os = \"unknown\"))".dependencies.wasm-bindgen]
81version = "0.2.62"
82optional = true
83default-features = false
84
85[target."cfg(all(any(target_arch = \"wasm32\", target_arch = \"wasm64\"), target_os = \"unknown\"))".dev-dependencies.wasm-bindgen-test]
86version = "0.3.18"
87
88[target."cfg(target_os = \"wasi\")".dependencies.wasi]
89version = "0.11"
90default-features = false
91
92[target."cfg(unix)".dependencies.libc]
93version = "0.2.149"
94default-features = false
95