Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame^] | 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 //wasm_bindgen/3rdparty:crates_vendor |
| 7 | ############################################################################### |
| 8 | |
| 9 | load( |
| 10 | "@bazel_skylib//lib:selects.bzl", |
| 11 | "selects", |
| 12 | ) |
| 13 | load( |
| 14 | "@rules_rust//cargo:defs.bzl", |
| 15 | "cargo_build_script", |
| 16 | ) |
| 17 | |
| 18 | # buildifier: disable=bzl-visibility |
| 19 | load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") |
| 20 | load( |
| 21 | "@rules_rust//rust:defs.bzl", |
| 22 | "rust_library", |
| 23 | ) |
| 24 | |
| 25 | package(default_visibility = ["//visibility:public"]) |
| 26 | |
| 27 | # licenses([ |
| 28 | # "TODO", # MIT/Apache-2.0 |
| 29 | # ]) |
| 30 | |
| 31 | rust_library( |
| 32 | name = "winapi", |
| 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 | "consoleapi", |
| 58 | "errhandlingapi", |
| 59 | "fileapi", |
| 60 | "handleapi", |
| 61 | "libloaderapi", |
| 62 | "minwinbase", |
| 63 | "minwindef", |
| 64 | "processenv", |
| 65 | "std", |
| 66 | "timezoneapi", |
| 67 | "winbase", |
| 68 | "wincon", |
| 69 | "wincrypt", |
| 70 | "winerror", |
| 71 | "winnt", |
| 72 | "winsock2", |
| 73 | "ws2def", |
| 74 | "ws2ipdef", |
| 75 | "ws2tcpip", |
| 76 | ], |
| 77 | crate_root = "src/lib.rs", |
| 78 | data = select_with_or({ |
| 79 | "//conditions:default": [ |
| 80 | ], |
| 81 | }), |
| 82 | edition = "2015", |
| 83 | proc_macro_deps = [ |
| 84 | ] + select_with_or({ |
| 85 | "//conditions:default": [ |
| 86 | ], |
| 87 | }), |
| 88 | rustc_env = { |
| 89 | }, |
| 90 | rustc_env_files = select_with_or({ |
| 91 | "//conditions:default": [ |
| 92 | ], |
| 93 | }), |
| 94 | rustc_flags = [ |
| 95 | # In most cases, warnings in 3rd party crates are not interesting as |
| 96 | # they're out of the control of consumers. The flag here silences |
| 97 | # warnings. For more details see: |
| 98 | # https://doc.rust-lang.org/rustc/lints/levels.html |
| 99 | "--cap-lints=allow", |
| 100 | ], |
| 101 | tags = [ |
| 102 | "cargo-bazel", |
| 103 | "manual", |
| 104 | "noclippy", |
| 105 | "norustfmt", |
| 106 | ], |
| 107 | version = "0.3.9", |
| 108 | deps = [ |
| 109 | ] + select_with_or({ |
| 110 | # i686-pc-windows-gnu |
| 111 | # |
| 112 | # No supported platform triples for cfg: 'i686-pc-windows-gnu' |
| 113 | # Skipped dependencies: [{"id":"winapi-i686-pc-windows-gnu 0.4.0","target":"winapi_i686_pc_windows_gnu"}] |
| 114 | # |
| 115 | # x86_64-pc-windows-gnu |
| 116 | # |
| 117 | # No supported platform triples for cfg: 'x86_64-pc-windows-gnu' |
| 118 | # Skipped dependencies: [{"id":"winapi-x86_64-pc-windows-gnu 0.4.0","target":"winapi_x86_64_pc_windows_gnu"}] |
| 119 | # |
| 120 | "//conditions:default": [ |
| 121 | "@rules_rust_wasm_bindgen__winapi-0.3.9//:build_script_build", |
| 122 | ], |
| 123 | }), |
| 124 | ) |
| 125 | |
| 126 | cargo_build_script( |
| 127 | # See comment associated with alias. Do not change this name |
| 128 | name = "winapi_build_script", |
| 129 | srcs = glob( |
| 130 | include = [ |
| 131 | "**/*.rs", |
| 132 | ], |
| 133 | exclude = [ |
| 134 | ], |
| 135 | ), |
| 136 | aliases = selects.with_or({ |
| 137 | "//conditions:default": { |
| 138 | }, |
| 139 | }), |
| 140 | build_script_env = { |
| 141 | }, |
| 142 | compile_data = select_with_or({ |
| 143 | "//conditions:default": [ |
| 144 | ], |
| 145 | }), |
| 146 | crate_features = [ |
| 147 | "consoleapi", |
| 148 | "errhandlingapi", |
| 149 | "fileapi", |
| 150 | "handleapi", |
| 151 | "libloaderapi", |
| 152 | "minwinbase", |
| 153 | "minwindef", |
| 154 | "processenv", |
| 155 | "std", |
| 156 | "timezoneapi", |
| 157 | "winbase", |
| 158 | "wincon", |
| 159 | "wincrypt", |
| 160 | "winerror", |
| 161 | "winnt", |
| 162 | "winsock2", |
| 163 | "ws2def", |
| 164 | "ws2ipdef", |
| 165 | "ws2tcpip", |
| 166 | ], |
| 167 | crate_name = "build_script_build", |
| 168 | crate_root = "build.rs", |
| 169 | data = glob(["**"]) + select_with_or({ |
| 170 | "//conditions:default": [ |
| 171 | ], |
| 172 | }), |
| 173 | edition = "2015", |
| 174 | proc_macro_deps = [ |
| 175 | ] + select_with_or({ |
| 176 | "//conditions:default": [ |
| 177 | ], |
| 178 | }), |
| 179 | rustc_env = { |
| 180 | }, |
| 181 | rustc_env_files = select_with_or({ |
| 182 | "//conditions:default": [ |
| 183 | ], |
| 184 | }), |
| 185 | rustc_flags = [ |
| 186 | # In most cases, warnings in 3rd party crates are not interesting as |
| 187 | # they're out of the control of consumers. The flag here silences |
| 188 | # warnings. For more details see: |
| 189 | # https://doc.rust-lang.org/rustc/lints/levels.html |
| 190 | "--cap-lints=allow", |
| 191 | ], |
| 192 | tags = [ |
| 193 | "cargo-bazel", |
| 194 | "manual", |
| 195 | "noclippy", |
| 196 | "norustfmt", |
| 197 | ], |
| 198 | tools = select_with_or({ |
| 199 | "//conditions:default": [ |
| 200 | ], |
| 201 | }), |
| 202 | version = "0.3.9", |
| 203 | visibility = ["//visibility:private"], |
| 204 | deps = [ |
| 205 | ] + select_with_or({ |
| 206 | "//conditions:default": [ |
| 207 | ], |
| 208 | }), |
| 209 | ) |
| 210 | |
| 211 | alias( |
| 212 | # Because `cargo_build_script` does some invisible target name mutating to |
| 213 | # determine the package and crate name for a build script, the Bazel |
| 214 | # target namename of any build script cannot be the Cargo canonical name |
| 215 | # of `build_script_build` without losing out on having certain Cargo |
| 216 | # environment variables set. |
| 217 | name = "build_script_build", |
| 218 | actual = "winapi_build_script", |
| 219 | tags = [ |
| 220 | "manual", |
| 221 | ], |
| 222 | ) |