# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# @generated from third_party/rust/chromium_crates_io/BUILD.gn.hbs by
# tools/crates/gnrt.
# Do not edit!
import("//build/rust/cargo_crate.gni")
cargo_crate("lib") {
crate_name = "rand"
epoch = "0.8"
crate_type = "rlib"
crate_root =
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/lib.rs"
sources = [
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/bernoulli.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/distribution.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/float.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/integer.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/mod.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/other.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/slice.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/uniform.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/utils.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/weighted.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/distributions/weighted_index.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/lib.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/prelude.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rng.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rngs/adapter/mod.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rngs/adapter/read.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rngs/adapter/reseeding.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rngs/mock.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rngs/mod.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rngs/small.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rngs/std.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rngs/thread.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rngs/xoshiro128plusplus.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/rngs/xoshiro256plusplus.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/seq/index.rs",
"//third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/seq/mod.rs",
]
inputs = []
build_native_rust_unit_tests = false
edition = "2018"
cargo_pkg_version = "0.8.5"
cargo_pkg_authors = "The Rand Project Developers, The Rust Project Developers"
cargo_pkg_name = "rand"
cargo_pkg_description =
"Random number generators and other randomness functionality."
library_configs -= [ "//build/config/compiler:chromium_code" ]
library_configs += [ "//build/config/compiler:no_chromium_code" ]
executable_configs -= [ "//build/config/compiler:chromium_code" ]
executable_configs += [ "//build/config/compiler:no_chromium_code" ]
proc_macro_configs -= [ "//build/config/compiler:chromium_code" ]
proc_macro_configs += [ "//build/config/compiler:no_chromium_code" ]
deps = [
"//third_party/rust/rand_chacha/v0_3:lib",
"//third_party/rust/rand_core/v0_6:lib",
]
if (!is_win) {
deps += [ "//third_party/rust/libc/v0_2:lib" ]
}
features = [
"alloc",
"getrandom",
"libc",
"rand_chacha",
"std",
"std_rng",
]
testonly = true
}