fork/rules_rust

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

UebelAndreUpdate `//bindgen` to use `crate_universe` (#1440)6d8009db

0.11.0
4.8 KiB199 linesraw
1###############################################################################
2# @generated
3# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
4# regenerate this file, run the following:
5#
6#     bazel run //bindgen/3rdparty:crates_vendor
7###############################################################################
8
9load(
10    "@bazel_skylib//lib:selects.bzl",
11    "selects",
12)
13load(
14    "@rules_rust//cargo:defs.bzl",
15    "cargo_build_script",
16)
17
18# buildifier: disable=bzl-visibility
19load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or")
20load(
21    "@rules_rust//rust:defs.bzl",
22    "rust_library",
23)
24
25package(default_visibility = ["//visibility:public"])
26
27# licenses([
28#     "TODO",  # Apache-2.0
29# ])
30
31rust_library(
32    name = "clang_sys",
33    srcs = glob(
34        include = [
35            "**/*.rs",
36        ],
37        exclude = [
38        ],
39    ),
40    aliases = selects.with_or({
41        "//conditions:default": {
42        },
43    }),
44    compile_data = glob(
45        include = ["**"],
46        exclude = [
47            "BUILD",
48            "BUILD.bazel",
49            "WORKSPACE",
50            "WORKSPACE.bazel",
51        ],
52    ) + select_with_or({
53        "//conditions:default": [
54        ],
55    }),
56    crate_features = [
57        "clang_3_5",
58        "clang_3_6",
59        "clang_3_7",
60        "clang_3_8",
61        "clang_3_9",
62        "clang_4_0",
63        "clang_5_0",
64        "clang_6_0",
65        "libloading",
66        "runtime",
67    ],
68    crate_root = "src/lib.rs",
69    data = select_with_or({
70        "//conditions:default": [
71        ],
72    }),
73    edition = "2015",
74    proc_macro_deps = [
75    ] + select_with_or({
76        "//conditions:default": [
77        ],
78    }),
79    rustc_env = {
80    },
81    rustc_env_files = select_with_or({
82        "//conditions:default": [
83        ],
84    }),
85    rustc_flags = [
86        # In most cases, warnings in 3rd party crates are not interesting as
87        # they're out of the control of consumers. The flag here silences
88        # warnings. For more details see:
89        # https://doc.rust-lang.org/rustc/lints/levels.html
90        "--cap-lints=allow",
91    ],
92    tags = [
93        "cargo-bazel",
94        "manual",
95        "noclippy",
96        "norustfmt",
97    ],
98    version = "1.3.3",
99    deps = [
100    ] + select_with_or({
101        "//conditions:default": [
102            "@rules_rust_bindgen__clang-sys-1.3.3//:build_script_build",
103            "@rules_rust_bindgen__glob-0.3.0//:glob",
104            "@rules_rust_bindgen__libc-0.2.126//:libc",
105            "@rules_rust_bindgen__libloading-0.7.3//:libloading",
106        ],
107    }),
108)
109
110cargo_build_script(
111    # See comment associated with alias. Do not change this name
112    name = "clang-sys_build_script",
113    srcs = glob(
114        include = [
115            "**/*.rs",
116        ],
117        exclude = [
118        ],
119    ),
120    aliases = selects.with_or({
121        "//conditions:default": {
122        },
123    }),
124    build_script_env = {
125    },
126    compile_data = select_with_or({
127        "//conditions:default": [
128        ],
129    }),
130    crate_features = [
131        "clang_3_5",
132        "clang_3_6",
133        "clang_3_7",
134        "clang_3_8",
135        "clang_3_9",
136        "clang_4_0",
137        "clang_5_0",
138        "clang_6_0",
139        "libloading",
140        "runtime",
141    ],
142    crate_name = "build_script_build",
143    crate_root = "build.rs",
144    data = glob(["**"]) + select_with_or({
145        "//conditions:default": [
146        ],
147    }),
148    edition = "2015",
149    links = "clang",
150    proc_macro_deps = [
151    ] + select_with_or({
152        "//conditions:default": [
153        ],
154    }),
155    rustc_env = {
156    },
157    rustc_env_files = select_with_or({
158        "//conditions:default": [
159        ],
160    }),
161    rustc_flags = [
162        # In most cases, warnings in 3rd party crates are not interesting as
163        # they're out of the control of consumers. The flag here silences
164        # warnings. For more details see:
165        # https://doc.rust-lang.org/rustc/lints/levels.html
166        "--cap-lints=allow",
167    ],
168    tags = [
169        "cargo-bazel",
170        "manual",
171        "noclippy",
172        "norustfmt",
173    ],
174    tools = select_with_or({
175        "//conditions:default": [
176        ],
177    }),
178    version = "1.3.3",
179    visibility = ["//visibility:private"],
180    deps = [
181    ] + select_with_or({
182        "//conditions:default": [
183            "@rules_rust_bindgen__glob-0.3.0//:glob",
184        ],
185    }),
186)
187
188alias(
189    # Because `cargo_build_script` does some invisible target name mutating to
190    # determine the package and crate name for a build script, the Bazel
191    # target namename of any build script cannot be the Cargo canonical name
192    # of `build_script_build` without losing out on having certain Cargo
193    # environment variables set.
194    name = "build_script_build",
195    actual = "clang-sys_build_script",
196    tags = [
197        "manual",
198    ],
199)