fork/rules_rust

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

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

0.6.0
6.5 KiB221 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",  # MIT
28# ])
29
30rust_library(
31    name = "curl",
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        "default",
49        "openssl-probe",
50        "openssl-sys",
51        "ssl",
52    ],
53    crate_root = "src/lib.rs",
54    data = select_with_or({
55        "//conditions:default": [
56        ],
57    }),
58    edition = "2018",
59    proc_macro_deps = [
60    ] + select_with_or({
61        "//conditions:default": [
62        ],
63    }),
64    rustc_env = {
65    },
66    rustc_env_files = select_with_or({
67        "//conditions:default": [
68        ],
69    }),
70    rustc_flags = [
71        # In most cases, warnings in 3rd party crates are not interesting as
72        # they're out of the control of consumers. The flag here silences
73        # warnings. For more details see:
74        # https://doc.rust-lang.org/rustc/lints/levels.html
75        "--cap-lints=allow",
76    ],
77    tags = [
78        "cargo-bazel",
79        "manual",
80        "noclippy",
81        "norustfmt",
82    ],
83    version = "0.4.43",
84    deps = [
85    ] + select_with_or({
86        # cfg(all(unix, not(target_os = "macos")))
87        (
88            "@rules_rust//rust/platform:aarch64-apple-ios",
89            "@rules_rust//rust/platform:aarch64-apple-ios-sim",
90            "@rules_rust//rust/platform:aarch64-linux-android",
91            "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
92            "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
93            "@rules_rust//rust/platform:armv7-linux-androideabi",
94            "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
95            "@rules_rust//rust/platform:i686-linux-android",
96            "@rules_rust//rust/platform:i686-unknown-freebsd",
97            "@rules_rust//rust/platform:i686-unknown-linux-gnu",
98            "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
99            "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
100            "@rules_rust//rust/platform:x86_64-apple-ios",
101            "@rules_rust//rust/platform:x86_64-linux-android",
102            "@rules_rust//rust/platform:x86_64-unknown-freebsd",
103            "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
104        ): [
105            # Target Deps
106            "@rules_rust_wasm_bindgen__openssl-probe-0.1.5//:openssl_probe",
107            "@rules_rust_wasm_bindgen__openssl-sys-0.9.74//:openssl_sys",
108
109            # Common Deps
110            "@rules_rust_wasm_bindgen__curl-0.4.43//:build_script_build",
111            "@rules_rust_wasm_bindgen__curl-sys-0.4.55-curl-7.83.1//:curl_sys",
112            "@rules_rust_wasm_bindgen__libc-0.2.126//:libc",
113            "@rules_rust_wasm_bindgen__socket2-0.4.4//:socket2",
114        ],
115        # cfg(target_env = "msvc")
116        (
117            "@rules_rust//rust/platform:i686-pc-windows-msvc",
118            "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
119        ): [
120            # Target Deps
121            "@rules_rust_wasm_bindgen__schannel-0.1.20//:schannel",
122            "@rules_rust_wasm_bindgen__winapi-0.3.9//:winapi",
123
124            # Common Deps
125            "@rules_rust_wasm_bindgen__curl-0.4.43//:build_script_build",
126            "@rules_rust_wasm_bindgen__curl-sys-0.4.55-curl-7.83.1//:curl_sys",
127            "@rules_rust_wasm_bindgen__libc-0.2.126//:libc",
128            "@rules_rust_wasm_bindgen__socket2-0.4.4//:socket2",
129        ],
130        "//conditions:default": [
131            "@rules_rust_wasm_bindgen__curl-0.4.43//:build_script_build",
132            "@rules_rust_wasm_bindgen__curl-sys-0.4.55-curl-7.83.1//:curl_sys",
133            "@rules_rust_wasm_bindgen__libc-0.2.126//:libc",
134            "@rules_rust_wasm_bindgen__socket2-0.4.4//:socket2",
135        ],
136    }),
137)
138
139cargo_build_script(
140    # See comment associated with alias. Do not change this name
141    name = "curl_build_script",
142    srcs = glob(
143        include = [
144            "**/*.rs",
145        ],
146        exclude = [
147        ],
148    ),
149    aliases = selects.with_or({
150        "//conditions:default": {
151        },
152    }),
153    build_script_env = {
154    },
155    compile_data = select_with_or({
156        "//conditions:default": [
157        ],
158    }),
159    crate_features = [
160        "default",
161        "openssl-probe",
162        "openssl-sys",
163        "ssl",
164    ],
165    crate_name = "build_script_build",
166    crate_root = "build.rs",
167    data = glob(["**"]) + select_with_or({
168        "//conditions:default": [
169        ],
170    }),
171    edition = "2018",
172    proc_macro_deps = [
173    ] + select_with_or({
174        "//conditions:default": [
175        ],
176    }),
177    rustc_env = {
178    },
179    rustc_env_files = select_with_or({
180        "//conditions:default": [
181        ],
182    }),
183    rustc_flags = [
184        # In most cases, warnings in 3rd party crates are not interesting as
185        # they're out of the control of consumers. The flag here silences
186        # warnings. For more details see:
187        # https://doc.rust-lang.org/rustc/lints/levels.html
188        "--cap-lints=allow",
189    ],
190    tags = [
191        "cargo-bazel",
192        "manual",
193        "noclippy",
194        "norustfmt",
195    ],
196    tools = select_with_or({
197        "//conditions:default": [
198        ],
199    }),
200    version = "0.4.43",
201    visibility = ["//visibility:private"],
202    deps = [
203    ] + select_with_or({
204        "//conditions:default": [
205            "@rules_rust_wasm_bindgen__curl-sys-0.4.55-curl-7.83.1//:curl_sys",
206        ],
207    }),
208)
209
210alias(
211    # Because `cargo_build_script` does some invisible target name mutating to
212    # determine the package and crate name for a build script, the Bazel
213    # target namename of any build script cannot be the Cargo canonical name
214    # of `build_script_build` without losing out on having certain Cargo
215    # environment variables set.
216    name = "build_script_build",
217    actual = "curl_build_script",
218    tags = [
219        "manual",
220    ],
221)