fork/rules_rust

git clone https://git.julia.blue/fork/rules_rust

UebelAndreexclude `BUILD` and `WORKSPACE` files from generated crate_universe targets (#1437)60f26d49

0.7.0
4.2 KiB139 linesraw
1###############################################################################
2# @generated
3# This file is auto-generated by the cargo-bazel tool.
4#
5# DO NOT MODIFY: Local changes may be replaced in future executions.
6###############################################################################
7
8load(
9    "@bazel_skylib//lib:selects.bzl",
10    "selects",
11)
12
13# buildifier: disable=bzl-visibility
14load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or")
15load(
16    "@rules_rust//rust:defs.bzl",
17    "rust_library",
18)
19
20package(default_visibility = ["//visibility:public"])
21
22# licenses([
23#     "TODO",  # MIT/Apache-2.0
24# ])
25
26rust_library(
27    name = "rand",
28    srcs = glob(
29        include = [
30            "**/*.rs",
31        ],
32        exclude = [
33        ],
34    ),
35    aliases = selects.with_or({
36        "//conditions:default": {
37        },
38    }),
39    compile_data = glob(
40        include = ["**"],
41        exclude = [
42            "BUILD",
43            "BUILD.bazel",
44            "WORKSPACE",
45            "WORKSPACE.bazel",
46        ],
47    ) + select_with_or({
48        "//conditions:default": [
49        ],
50    }),
51    crate_features = [
52        "default",
53        "libc",
54        "std",
55    ],
56    crate_root = "src/lib.rs",
57    data = select_with_or({
58        "//conditions:default": [
59        ],
60    }),
61    edition = "2015",
62    proc_macro_deps = [
63    ] + select_with_or({
64        "//conditions:default": [
65        ],
66    }),
67    rustc_env = {
68    },
69    rustc_env_files = select_with_or({
70        "//conditions:default": [
71        ],
72    }),
73    rustc_flags = [
74        # In most cases, warnings in 3rd party crates are not interesting as
75        # they're out of the control of consumers. The flag here silences
76        # warnings. For more details see:
77        # https://doc.rust-lang.org/rustc/lints/levels.html
78        "--cap-lints=allow",
79    ],
80    tags = [
81        "cargo-bazel",
82        "manual",
83        "noclippy",
84        "norustfmt",
85    ],
86    version = "0.4.6",
87    deps = [
88    ] + select_with_or({
89        # cfg(target_env = "sgx")
90        #
91        # No supported platform triples for cfg: 'cfg(target_env = "sgx")'
92        # Skipped dependencies: [{"id":"rand_core 0.3.1","target":"rand_core"},{"id":"rdrand 0.4.0","target":"rdrand"}]
93        #
94        # cfg(target_os = "fuchsia")
95        #
96        # No supported platform triples for cfg: 'cfg(target_os = "fuchsia")'
97        # Skipped dependencies: [{"id":"fuchsia-cprng 0.1.1","target":"fuchsia_cprng"}]
98        #
99        # cfg(unix)
100        (
101            "@rules_rust//rust/platform:aarch64-apple-darwin",
102            "@rules_rust//rust/platform:aarch64-apple-ios",
103            "@rules_rust//rust/platform:aarch64-apple-ios-sim",
104            "@rules_rust//rust/platform:aarch64-linux-android",
105            "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
106            "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
107            "@rules_rust//rust/platform:armv7-linux-androideabi",
108            "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
109            "@rules_rust//rust/platform:i686-apple-darwin",
110            "@rules_rust//rust/platform:i686-linux-android",
111            "@rules_rust//rust/platform:i686-unknown-freebsd",
112            "@rules_rust//rust/platform:i686-unknown-linux-gnu",
113            "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
114            "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
115            "@rules_rust//rust/platform:x86_64-apple-darwin",
116            "@rules_rust//rust/platform:x86_64-apple-ios",
117            "@rules_rust//rust/platform:x86_64-linux-android",
118            "@rules_rust//rust/platform:x86_64-unknown-freebsd",
119            "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
120        ): [
121            # Target Deps
122            "@crate_universe_crate_index__libc-0.2.126//:libc",
123
124            # Common Deps
125        ],
126        # cfg(windows)
127        (
128            "@rules_rust//rust/platform:i686-pc-windows-msvc",
129            "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
130        ): [
131            # Target Deps
132            "@crate_universe_crate_index__winapi-0.3.9//:winapi",
133
134            # Common Deps
135        ],
136        "//conditions:default": [
137        ],
138    }),
139)