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
3.7 KiB160 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_binary",
18    "rust_library",
19)
20
21package(default_visibility = ["//visibility:public"])
22
23# licenses([
24#     "TODO",  # MIT
25# ])
26
27rust_library(
28    name = "phf_generator",
29    srcs = glob(
30        include = [
31            "**/*.rs",
32        ],
33        exclude = [
34        ],
35    ),
36    aliases = selects.with_or({
37        "//conditions:default": {
38        },
39    }),
40    compile_data = glob(
41        include = ["**"],
42        exclude = [
43            "BUILD",
44            "BUILD.bazel",
45            "WORKSPACE",
46            "WORKSPACE.bazel",
47        ],
48    ) + select_with_or({
49        "//conditions:default": [
50        ],
51    }),
52    crate_features = [
53    ],
54    crate_root = "src/lib.rs",
55    data = select_with_or({
56        "//conditions:default": [
57        ],
58    }),
59    edition = "2018",
60    proc_macro_deps = [
61    ] + select_with_or({
62        "//conditions:default": [
63        ],
64    }),
65    rustc_env = {
66    },
67    rustc_env_files = select_with_or({
68        "//conditions:default": [
69        ],
70    }),
71    rustc_flags = [
72        # In most cases, warnings in 3rd party crates are not interesting as
73        # they're out of the control of consumers. The flag here silences
74        # warnings. For more details see:
75        # https://doc.rust-lang.org/rustc/lints/levels.html
76        "--cap-lints=allow",
77    ],
78    tags = [
79        "cargo-bazel",
80        "manual",
81        "noclippy",
82        "norustfmt",
83    ],
84    version = "0.10.0",
85    deps = [
86    ] + select_with_or({
87        "//conditions:default": [
88            "@crate_universe_crate_index__phf_shared-0.10.0//:phf_shared",
89            "@crate_universe_crate_index__rand-0.8.5//:rand",
90        ],
91    }),
92)
93
94rust_binary(
95    name = "gen_hash_test__bin",
96    srcs = glob(
97        include = [
98            "**/*.rs",
99        ],
100        exclude = [
101        ],
102    ),
103    aliases = selects.with_or({
104        "//conditions:default": {
105        },
106    }),
107    compile_data = glob(
108        include = ["**"],
109        exclude = [
110            "BUILD",
111            "BUILD.bazel",
112            "WORKSPACE",
113            "WORKSPACE.bazel",
114        ],
115    ) + select_with_or({
116        "//conditions:default": [
117        ],
118    }),
119    crate_features = [
120    ],
121    crate_root = "src/bin/gen_hash_test.rs",
122    data = select_with_or({
123        "//conditions:default": [
124        ],
125    }),
126    edition = "2018",
127    proc_macro_deps = [
128    ] + select_with_or({
129        "//conditions:default": [
130        ],
131    }),
132    rustc_env = {
133    },
134    rustc_env_files = select_with_or({
135        "//conditions:default": [
136        ],
137    }),
138    rustc_flags = [
139        # In most cases, warnings in 3rd party crates are not interesting as
140        # they're out of the control of consumers. The flag here silences
141        # warnings. For more details see:
142        # https://doc.rust-lang.org/rustc/lints/levels.html
143        "--cap-lints=allow",
144    ],
145    tags = [
146        "cargo-bazel",
147        "manual",
148        "noclippy",
149        "norustfmt",
150    ],
151    version = "0.10.0",
152    deps = [
153        ":phf_generator",
154    ] + select_with_or({
155        "//conditions:default": [
156            "@crate_universe_crate_index__phf_shared-0.10.0//:phf_shared",
157            "@crate_universe_crate_index__rand-0.8.5//:rand",
158        ],
159    }),
160)