fork/rules_rust

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

UebelAndreRenamed `crate_index` repository to `crate_universe_crate_index` (#1217)e48c834a

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