xref: /aosp_15_r20/external/cronet/third_party/rust/rand/v0_8/BUILD.gn (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1# Copyright 2023 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# @generated from third_party/rust/chromium_crates_io/BUILD.gn.hbs by
6# tools/crates/gnrt.
7# Do not edit!
8
9import("//build/rust/cargo_crate.gni")
10
11cargo_crate("lib") {
12  crate_name = "rand"
13  epoch = "0.8"
14  crate_type = "rlib"
15  crate_root =
16      "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/lib.rs"
17  sources = [
18    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/bernoulli.rs",
19    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/distribution.rs",
20    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/float.rs",
21    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/integer.rs",
22    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/mod.rs",
23    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/other.rs",
24    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/slice.rs",
25    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/uniform.rs",
26    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/utils.rs",
27    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/weighted.rs",
28    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/weighted_index.rs",
29    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/lib.rs",
30    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/prelude.rs",
31    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rng.rs",
32    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rngs/adapter/mod.rs",
33    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rngs/adapter/read.rs",
34    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rngs/adapter/reseeding.rs",
35    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rngs/mock.rs",
36    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rngs/mod.rs",
37    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rngs/small.rs",
38    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rngs/std.rs",
39    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rngs/thread.rs",
40    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rngs/xoshiro128plusplus.rs",
41    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rngs/xoshiro256plusplus.rs",
42    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/seq/index.rs",
43    "//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/seq/mod.rs",
44  ]
45  inputs = []
46
47  build_native_rust_unit_tests = false
48  edition = "2018"
49  cargo_pkg_version = "0.8.5"
50  cargo_pkg_authors = "The Rand Project Developers, The Rust Project Developers"
51  cargo_pkg_name = "rand"
52  cargo_pkg_description =
53      "Random number generators and other randomness functionality."
54  library_configs -= [ "//build/config/compiler:chromium_code" ]
55  library_configs += [ "//build/config/compiler:no_chromium_code" ]
56  executable_configs -= [ "//build/config/compiler:chromium_code" ]
57  executable_configs += [ "//build/config/compiler:no_chromium_code" ]
58  proc_macro_configs -= [ "//build/config/compiler:chromium_code" ]
59  proc_macro_configs += [ "//build/config/compiler:no_chromium_code" ]
60  deps = [
61    "//third_party/rust/rand_chacha/v0_3:lib",
62    "//third_party/rust/rand_core/v0_6:lib",
63  ]
64  if (!is_win) {
65    deps += [ "//third_party/rust/libc/v0_2:lib" ]
66  }
67  features = [
68    "alloc",
69    "getrandom",
70    "libc",
71    "rand_chacha",
72    "std",
73    "std_rng",
74  ]
75  testonly = true
76}
77