-
Notifications
You must be signed in to change notification settings - Fork 252
/
BUILD.rand-0.7.3.bazel
134 lines (127 loc) · 3.66 KB
/
BUILD.rand-0.7.3.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
###############################################################################
# @generated
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
# regenerate this file, run the following:
#
# bazel run //rust-deps:crates_vendor
###############################################################################
load(
"@bazel_skylib//lib:selects.bzl",
"selects",
)
# buildifier: disable=bzl-visibility
load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or")
load(
"@rules_rust//rust:defs.bzl",
"rust_library",
)
package(default_visibility = ["//visibility:public"])
# licenses([
# "TODO", # MIT OR Apache-2.0
# ])
rust_library(
name = "rand",
srcs = glob(
include = [
"**/*.rs",
],
exclude = [
],
),
aliases = selects.with_or({
"//conditions:default": {
"@crates_vendor__getrandom-0.1.16//:getrandom": "getrandom_package",
},
}),
compile_data = glob(
include = ["**"],
exclude = [
"BUILD",
"BUILD.bazel",
"WORKSPACE",
"WORKSPACE.bazel",
],
) + select_with_or({
"//conditions:default": [
],
}),
crate_features = [
"alloc",
"default",
"getrandom",
"getrandom_package",
"libc",
"rand_pcg",
"small_rng",
"std",
],
crate_root = "src/lib.rs",
data = select_with_or({
"//conditions:default": [
],
}),
edition = "2018",
proc_macro_deps = [
] + select_with_or({
"//conditions:default": [
],
}),
rustc_env = {
},
rustc_env_files = select_with_or({
"//conditions:default": [
],
}),
rustc_flags = [
# In most cases, warnings in 3rd party crates are not interesting as
# they're out of the control of consumers. The flag here silences
# warnings. For more details see:
# https://doc.rust-lang.org/rustc/lints/levels.html
"--cap-lints=allow",
],
tags = [
"cargo-bazel",
"manual",
"noclippy",
"norustfmt",
],
version = "0.7.3",
deps = [
] + select_with_or({
# cfg(not(target_os = "emscripten"))
(
"@rules_rust//rust/platform:aarch64-apple-darwin",
"@rules_rust//rust/platform:wasm32-unknown-unknown",
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
): [
# Target Deps
"@crates_vendor__rand_chacha-0.2.2//:rand_chacha",
# Common Deps
"@crates_vendor__getrandom-0.1.16//:getrandom",
"@crates_vendor__rand_core-0.5.1//:rand_core",
"@crates_vendor__rand_pcg-0.2.1//:rand_pcg",
],
# cfg(target_os = "emscripten")
#
# No supported platform triples for cfg: 'cfg(target_os = "emscripten")'
# Skipped dependencies: [{"id":"rand_hc 0.2.0","target":"rand_hc"}]
#
# cfg(unix)
(
"@rules_rust//rust/platform:aarch64-apple-darwin",
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
): [
# Target Deps
"@crates_vendor__libc-0.2.132//:libc",
# Common Deps
"@crates_vendor__getrandom-0.1.16//:getrandom",
"@crates_vendor__rand_core-0.5.1//:rand_core",
"@crates_vendor__rand_pcg-0.2.1//:rand_pcg",
],
"//conditions:default": [
"@crates_vendor__getrandom-0.1.16//:getrandom",
"@crates_vendor__rand_core-0.5.1//:rand_core",
"@crates_vendor__rand_pcg-0.2.1//:rand_pcg",
],
}),
)