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