Debian Codegraph @

third_party/rust/getrandom/Cargo.toml

raw
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.3"
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.cross.target.x86_64-unknown-netbsd]
36 pre-build = [
37 "mkdir -p /tmp/netbsd",
38 "curl -fO https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.3/amd64/binary/sets/base.tar.xz",
39 "tar -C /tmp/netbsd -xJf base.tar.xz",
40 "cp /tmp/netbsd/usr/lib/libexecinfo.so /usr/local/x86_64-unknown-netbsd/lib",
41 "rm base.tar.xz",
42 "rm -rf /tmp/netbsd",
43 ]
44
45 [package.metadata.docs.rs]
46 features = ["std"]
47
48 [features]
49 rustc-dep-of-std = [
50 "dep:compiler_builtins",
51 "dep:core",
52 ]
53 std = []
54 wasm_js = [
55 "dep:wasm-bindgen",
56 "dep:js-sys",
57 ]
58
59 [lib]
60 name = "getrandom"
61 path = "src/lib.rs"
62
63 [[test]]
64 name = "mod"
65 path = "tests/mod.rs"
66
67 [[bench]]
68 name = "buffer"
69 path = "benches/buffer.rs"
70
71 [dependencies.cfg-if]
72 version = "1"
73
74 [dependencies.compiler_builtins]
75 version = "0.1"
76 optional = true
77
78 [dependencies.core]
79 version = "1.0"
80 optional = true
81 package = "rustc-std-workspace-core"
82
83 [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]
84 version = "0.2.154"
85 default-features = false
86
87 [target.'cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))'.dependencies.wasm-bindgen]
88 version = "0.2.98"
89 optional = true
90 default-features = false
91
92 [target.'cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))'.dev-dependencies.wasm-bindgen-test]
93 version = "0.3"
94
95 [target.'cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"), target_feature = "atomics"))'.dependencies.js-sys]
96 version = "0.3.77"
97 optional = true
98 default-features = false
99
100 [target.'cfg(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2"))'.dependencies.wasi]
101 version = "0.14"
102 default-features = false
103
104 [target.'cfg(all(target_os = "uefi", getrandom_backend = "efi_rng"))'.dependencies.r-efi]
105 version = "5.1"
106 default-features = false
107
108 [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]
109 version = "0.2.154"
110 default-features = false
111
112 [target.'cfg(any(target_os = "haiku", target_os = "redox", target_os = "nto", target_os = "aix"))'.dependencies.libc]
113 version = "0.2.154"
114 default-features = false
115
116 [target.'cfg(any(target_os = "ios", target_os = "visionos", target_os = "watchos", target_os = "tvos"))'.dependencies.libc]
117 version = "0.2.154"
118 default-features = false
119
120 [target.'cfg(any(target_os = "macos", target_os = "openbsd", target_os = "vita", target_os = "emscripten"))'.dependencies.libc]
121 version = "0.2.154"
122 default-features = false
123
124 [target.'cfg(target_os = "netbsd")'.dependencies.libc]
125 version = "0.2.154"
126 default-features = false
127
128 [target.'cfg(target_os = "solaris")'.dependencies.libc]
129 version = "0.2.154"
130 default-features = false
131
132 [target.'cfg(target_os = "vxworks")'.dependencies.libc]
133 version = "0.2.154"
134 default-features = false
135
136 [lints.rust.unexpected_cfgs]
137 level = "warn"
138 priority = 0
139 check-cfg = [
140 'cfg(getrandom_backend, values("custom", "efi_rng", "rdrand", "rndr", "linux_getrandom", "linux_raw", "wasm_js"))',
141 "cfg(getrandom_msan)",
142 "cfg(getrandom_windows_legacy)",
143 "cfg(getrandom_test_linux_fallback)",
144 "cfg(getrandom_test_linux_without_fallback)",
145 "cfg(getrandom_test_netbsd_fallback)",
146 'cfg(target_os, values("cygwin"))',
147 ]