fork/rules_rust

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

UebelAndreUpdated crate_universe version (to `0.3.0`) and dependencies (#1409)d3197a65

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