fork/rules_rust

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

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

0.6.0
3.1 KiB140 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",  # Apache-2.0 WITH LLVM-exception
25# ])
26
27rust_library(
28    name = "wit_schema_version",
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.1.0",
77    deps = [
78    ] + select_with_or({
79        "//conditions:default": [
80        ],
81    }),
82)
83
84rust_binary(
85    name = "wit-schema-version__bin",
86    srcs = glob(
87        include = [
88            "**/*.rs",
89        ],
90        exclude = [
91        ],
92    ),
93    aliases = selects.with_or({
94        "//conditions:default": {
95        },
96    }),
97    compile_data = glob(["**"]) + select_with_or({
98        "//conditions:default": [
99        ],
100    }),
101    crate_features = [
102    ],
103    crate_root = "src/main.rs",
104    data = select_with_or({
105        "//conditions:default": [
106        ],
107    }),
108    edition = "2018",
109    proc_macro_deps = [
110    ] + select_with_or({
111        "//conditions:default": [
112        ],
113    }),
114    rustc_env = {
115    },
116    rustc_env_files = select_with_or({
117        "//conditions:default": [
118        ],
119    }),
120    rustc_flags = [
121        # In most cases, warnings in 3rd party crates are not interesting as
122        # they're out of the control of consumers. The flag here silences
123        # warnings. For more details see:
124        # https://doc.rust-lang.org/rustc/lints/levels.html
125        "--cap-lints=allow",
126    ],
127    tags = [
128        "cargo-bazel",
129        "manual",
130        "noclippy",
131        "norustfmt",
132    ],
133    version = "0.1.0",
134    deps = [
135        ":wit_schema_version",
136    ] + select_with_or({
137        "//conditions:default": [
138        ],
139    }),
140)