fork/rules_rust

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

UebelAndreUpdate wasm_bindgen to use crate universe. (#1398)97264b79

0.6.0
4.0 KiB167 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)
12load(
13    "@rules_rust//cargo:defs.bzl",
14    "cargo_build_script",
15)
16
17# buildifier: disable=bzl-visibility
18load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or")
19load(
20    "@rules_rust//rust:defs.bzl",
21    "rust_library",
22)
23
24package(default_visibility = ["//visibility:public"])
25
26# licenses([
27#     "TODO",  # Apache-2.0/MIT
28# ])
29
30rust_library(
31    name = "indexmap",
32    srcs = glob(
33        include = [
34            "**/*.rs",
35        ],
36        exclude = [
37        ],
38    ),
39    aliases = selects.with_or({
40        "//conditions:default": {
41        },
42    }),
43    compile_data = glob(["**"]) + select_with_or({
44        "//conditions:default": [
45        ],
46    }),
47    crate_features = [
48    ],
49    crate_root = "src/lib.rs",
50    data = select_with_or({
51        "//conditions:default": [
52        ],
53    }),
54    edition = "2018",
55    proc_macro_deps = [
56    ] + select_with_or({
57        "//conditions:default": [
58        ],
59    }),
60    rustc_env = {
61    },
62    rustc_env_files = select_with_or({
63        "//conditions:default": [
64        ],
65    }),
66    rustc_flags = [
67        # In most cases, warnings in 3rd party crates are not interesting as
68        # they're out of the control of consumers. The flag here silences
69        # warnings. For more details see:
70        # https://doc.rust-lang.org/rustc/lints/levels.html
71        "--cap-lints=allow",
72    ],
73    tags = [
74        "cargo-bazel",
75        "manual",
76        "noclippy",
77        "norustfmt",
78    ],
79    version = "1.8.2",
80    deps = [
81    ] + select_with_or({
82        "//conditions:default": [
83            "@rules_rust_wasm_bindgen__hashbrown-0.11.2//:hashbrown",
84            "@rules_rust_wasm_bindgen__indexmap-1.8.2//:build_script_build",
85        ],
86    }),
87)
88
89cargo_build_script(
90    # See comment associated with alias. Do not change this name
91    name = "indexmap_build_script",
92    srcs = glob(
93        include = [
94            "**/*.rs",
95        ],
96        exclude = [
97        ],
98    ),
99    aliases = selects.with_or({
100        "//conditions:default": {
101        },
102    }),
103    build_script_env = {
104    },
105    compile_data = select_with_or({
106        "//conditions:default": [
107        ],
108    }),
109    crate_features = [
110    ],
111    crate_name = "build_script_build",
112    crate_root = "build.rs",
113    data = glob(["**"]) + select_with_or({
114        "//conditions:default": [
115        ],
116    }),
117    edition = "2018",
118    proc_macro_deps = [
119    ] + select_with_or({
120        "//conditions:default": [
121        ],
122    }),
123    rustc_env = {
124    },
125    rustc_env_files = select_with_or({
126        "//conditions:default": [
127        ],
128    }),
129    rustc_flags = [
130        # In most cases, warnings in 3rd party crates are not interesting as
131        # they're out of the control of consumers. The flag here silences
132        # warnings. For more details see:
133        # https://doc.rust-lang.org/rustc/lints/levels.html
134        "--cap-lints=allow",
135    ],
136    tags = [
137        "cargo-bazel",
138        "manual",
139        "noclippy",
140        "norustfmt",
141    ],
142    tools = select_with_or({
143        "//conditions:default": [
144        ],
145    }),
146    version = "1.8.2",
147    visibility = ["//visibility:private"],
148    deps = [
149    ] + select_with_or({
150        "//conditions:default": [
151            "@rules_rust_wasm_bindgen__autocfg-1.1.0//:autocfg",
152        ],
153    }),
154)
155
156alias(
157    # Because `cargo_build_script` does some invisible target name mutating to
158    # determine the package and crate name for a build script, the Bazel
159    # target namename of any build script cannot be the Cargo canonical name
160    # of `build_script_build` without losing out on having certain Cargo
161    # environment variables set.
162    name = "build_script_build",
163    actual = "indexmap_build_script",
164    tags = [
165        "manual",
166    ],
167)