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 | # |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 6 | # bazel run @//sys/complex/3rdparty:crates_vendor |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 7 | ############################################################################### |
| 8 | """ |
| 9 | # `crates_repository` API |
| 10 | |
| 11 | - [aliases](#aliases) |
| 12 | - [crate_deps](#crate_deps) |
| 13 | - [all_crate_deps](#all_crate_deps) |
| 14 | - [crate_repositories](#crate_repositories) |
| 15 | |
| 16 | """ |
| 17 | |
| 18 | load("@bazel_skylib//lib:selects.bzl", "selects") |
| 19 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 20 | load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") |
| 21 | |
| 22 | ############################################################################### |
| 23 | # MACROS API |
| 24 | ############################################################################### |
| 25 | |
| 26 | # An identifier that represent common dependencies (unconditional). |
| 27 | _COMMON_CONDITION = "" |
| 28 | |
| 29 | def _flatten_dependency_maps(all_dependency_maps): |
| 30 | """Flatten a list of dependency maps into one dictionary. |
| 31 | |
| 32 | Dependency maps have the following structure: |
| 33 | |
| 34 | ```python |
| 35 | DEPENDENCIES_MAP = { |
| 36 | # The first key in the map is a Bazel package |
| 37 | # name of the workspace this file is defined in. |
| 38 | "workspace_member_package": { |
| 39 | |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 40 | # Not all dependencies are supported for all platforms. |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 41 | # the condition key is the condition required to be true |
| 42 | # on the host platform. |
| 43 | "condition": { |
| 44 | |
| 45 | # An alias to a crate target. # The label of the crate target the |
| 46 | # Aliases are only crate names. # package name refers to. |
| 47 | "package_name": "@full//:label", |
| 48 | } |
| 49 | } |
| 50 | } |
| 51 | ``` |
| 52 | |
| 53 | Args: |
| 54 | all_dependency_maps (list): A list of dicts as described above |
| 55 | |
| 56 | Returns: |
| 57 | dict: A dictionary as described above |
| 58 | """ |
| 59 | dependencies = {} |
| 60 | |
| 61 | for workspace_deps_map in all_dependency_maps: |
| 62 | for pkg_name, conditional_deps_map in workspace_deps_map.items(): |
| 63 | if pkg_name not in dependencies: |
| 64 | non_frozen_map = dict() |
| 65 | for key, values in conditional_deps_map.items(): |
| 66 | non_frozen_map.update({key: dict(values.items())}) |
| 67 | dependencies.setdefault(pkg_name, non_frozen_map) |
| 68 | continue |
| 69 | |
| 70 | for condition, deps_map in conditional_deps_map.items(): |
| 71 | # If the condition has not been recorded, do so and continue |
| 72 | if condition not in dependencies[pkg_name]: |
| 73 | dependencies[pkg_name].setdefault(condition, dict(deps_map.items())) |
| 74 | continue |
| 75 | |
| 76 | # Alert on any miss-matched dependencies |
| 77 | inconsistent_entries = [] |
| 78 | for crate_name, crate_label in deps_map.items(): |
| 79 | existing = dependencies[pkg_name][condition].get(crate_name) |
| 80 | if existing and existing != crate_label: |
| 81 | inconsistent_entries.append((crate_name, existing, crate_label)) |
| 82 | dependencies[pkg_name][condition].update({crate_name: crate_label}) |
| 83 | |
| 84 | return dependencies |
| 85 | |
| 86 | def crate_deps(deps, package_name = None): |
| 87 | """Finds the fully qualified label of the requested crates for the package where this macro is called. |
| 88 | |
| 89 | Args: |
| 90 | deps (list): The desired list of crate targets. |
| 91 | package_name (str, optional): The package name of the set of dependencies to look up. |
| 92 | Defaults to `native.package_name()`. |
| 93 | |
| 94 | Returns: |
| 95 | list: A list of labels to generated rust targets (str) |
| 96 | """ |
| 97 | |
| 98 | if not deps: |
| 99 | return [] |
| 100 | |
| 101 | if package_name == None: |
| 102 | package_name = native.package_name() |
| 103 | |
| 104 | # Join both sets of dependencies |
| 105 | dependencies = _flatten_dependency_maps([ |
| 106 | _NORMAL_DEPENDENCIES, |
| 107 | _NORMAL_DEV_DEPENDENCIES, |
| 108 | _PROC_MACRO_DEPENDENCIES, |
| 109 | _PROC_MACRO_DEV_DEPENDENCIES, |
| 110 | _BUILD_DEPENDENCIES, |
| 111 | _BUILD_PROC_MACRO_DEPENDENCIES, |
| 112 | ]).pop(package_name, {}) |
| 113 | |
| 114 | # Combine all conditional packages so we can easily index over a flat list |
| 115 | # TODO: Perhaps this should actually return select statements and maintain |
| 116 | # the conditionals of the dependencies |
| 117 | flat_deps = {} |
| 118 | for deps_set in dependencies.values(): |
| 119 | for crate_name, crate_label in deps_set.items(): |
| 120 | flat_deps.update({crate_name: crate_label}) |
| 121 | |
| 122 | missing_crates = [] |
| 123 | crate_targets = [] |
| 124 | for crate_target in deps: |
| 125 | if crate_target not in flat_deps: |
| 126 | missing_crates.append(crate_target) |
| 127 | else: |
| 128 | crate_targets.append(flat_deps[crate_target]) |
| 129 | |
| 130 | if missing_crates: |
| 131 | fail("Could not find crates `{}` among dependencies of `{}`. Available dependencies were `{}`".format( |
| 132 | missing_crates, |
| 133 | package_name, |
| 134 | dependencies, |
| 135 | )) |
| 136 | |
| 137 | return crate_targets |
| 138 | |
| 139 | def all_crate_deps( |
| 140 | normal = False, |
| 141 | normal_dev = False, |
| 142 | proc_macro = False, |
| 143 | proc_macro_dev = False, |
| 144 | build = False, |
| 145 | build_proc_macro = False, |
| 146 | package_name = None): |
| 147 | """Finds the fully qualified label of all requested direct crate dependencies \ |
| 148 | for the package where this macro is called. |
| 149 | |
| 150 | If no parameters are set, all normal dependencies are returned. Setting any one flag will |
| 151 | otherwise impact the contents of the returned list. |
| 152 | |
| 153 | Args: |
| 154 | normal (bool, optional): If True, normal dependencies are included in the |
| 155 | output list. |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 156 | normal_dev (bool, optional): If True, normal dev dependencies will be |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 157 | included in the output list.. |
| 158 | proc_macro (bool, optional): If True, proc_macro dependencies are included |
| 159 | in the output list. |
| 160 | proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are |
| 161 | included in the output list. |
| 162 | build (bool, optional): If True, build dependencies are included |
| 163 | in the output list. |
| 164 | build_proc_macro (bool, optional): If True, build proc_macro dependencies are |
| 165 | included in the output list. |
| 166 | package_name (str, optional): The package name of the set of dependencies to look up. |
| 167 | Defaults to `native.package_name()` when unset. |
| 168 | |
| 169 | Returns: |
| 170 | list: A list of labels to generated rust targets (str) |
| 171 | """ |
| 172 | |
| 173 | if package_name == None: |
| 174 | package_name = native.package_name() |
| 175 | |
| 176 | # Determine the relevant maps to use |
| 177 | all_dependency_maps = [] |
| 178 | if normal: |
| 179 | all_dependency_maps.append(_NORMAL_DEPENDENCIES) |
| 180 | if normal_dev: |
| 181 | all_dependency_maps.append(_NORMAL_DEV_DEPENDENCIES) |
| 182 | if proc_macro: |
| 183 | all_dependency_maps.append(_PROC_MACRO_DEPENDENCIES) |
| 184 | if proc_macro_dev: |
| 185 | all_dependency_maps.append(_PROC_MACRO_DEV_DEPENDENCIES) |
| 186 | if build: |
| 187 | all_dependency_maps.append(_BUILD_DEPENDENCIES) |
| 188 | if build_proc_macro: |
| 189 | all_dependency_maps.append(_BUILD_PROC_MACRO_DEPENDENCIES) |
| 190 | |
| 191 | # Default to always using normal dependencies |
| 192 | if not all_dependency_maps: |
| 193 | all_dependency_maps.append(_NORMAL_DEPENDENCIES) |
| 194 | |
| 195 | dependencies = _flatten_dependency_maps(all_dependency_maps).pop(package_name, None) |
| 196 | |
| 197 | if not dependencies: |
| 198 | if dependencies == None: |
| 199 | fail("Tried to get all_crate_deps for package " + package_name + " but that package had no Cargo.toml file") |
| 200 | else: |
| 201 | return [] |
| 202 | |
| 203 | crate_deps = list(dependencies.pop(_COMMON_CONDITION, {}).values()) |
| 204 | for condition, deps in dependencies.items(): |
| 205 | crate_deps += selects.with_or({_CONDITIONS[condition]: deps.values()}) |
| 206 | |
| 207 | return crate_deps |
| 208 | |
| 209 | def aliases( |
| 210 | normal = False, |
| 211 | normal_dev = False, |
| 212 | proc_macro = False, |
| 213 | proc_macro_dev = False, |
| 214 | build = False, |
| 215 | build_proc_macro = False, |
| 216 | package_name = None): |
| 217 | """Produces a map of Crate alias names to their original label |
| 218 | |
| 219 | If no dependency kinds are specified, `normal` and `proc_macro` are used by default. |
| 220 | Setting any one flag will otherwise determine the contents of the returned dict. |
| 221 | |
| 222 | Args: |
| 223 | normal (bool, optional): If True, normal dependencies are included in the |
| 224 | output list. |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 225 | normal_dev (bool, optional): If True, normal dev dependencies will be |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 226 | included in the output list.. |
| 227 | proc_macro (bool, optional): If True, proc_macro dependencies are included |
| 228 | in the output list. |
| 229 | proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are |
| 230 | included in the output list. |
| 231 | build (bool, optional): If True, build dependencies are included |
| 232 | in the output list. |
| 233 | build_proc_macro (bool, optional): If True, build proc_macro dependencies are |
| 234 | included in the output list. |
| 235 | package_name (str, optional): The package name of the set of dependencies to look up. |
| 236 | Defaults to `native.package_name()` when unset. |
| 237 | |
| 238 | Returns: |
| 239 | dict: The aliases of all associated packages |
| 240 | """ |
| 241 | if package_name == None: |
| 242 | package_name = native.package_name() |
| 243 | |
| 244 | # Determine the relevant maps to use |
| 245 | all_aliases_maps = [] |
| 246 | if normal: |
| 247 | all_aliases_maps.append(_NORMAL_ALIASES) |
| 248 | if normal_dev: |
| 249 | all_aliases_maps.append(_NORMAL_DEV_ALIASES) |
| 250 | if proc_macro: |
| 251 | all_aliases_maps.append(_PROC_MACRO_ALIASES) |
| 252 | if proc_macro_dev: |
| 253 | all_aliases_maps.append(_PROC_MACRO_DEV_ALIASES) |
| 254 | if build: |
| 255 | all_aliases_maps.append(_BUILD_ALIASES) |
| 256 | if build_proc_macro: |
| 257 | all_aliases_maps.append(_BUILD_PROC_MACRO_ALIASES) |
| 258 | |
| 259 | # Default to always using normal aliases |
| 260 | if not all_aliases_maps: |
| 261 | all_aliases_maps.append(_NORMAL_ALIASES) |
| 262 | all_aliases_maps.append(_PROC_MACRO_ALIASES) |
| 263 | |
| 264 | aliases = _flatten_dependency_maps(all_aliases_maps).pop(package_name, None) |
| 265 | |
| 266 | if not aliases: |
| 267 | return dict() |
| 268 | |
| 269 | common_items = aliases.pop(_COMMON_CONDITION, {}).items() |
| 270 | |
| 271 | # If there are only common items in the dictionary, immediately return them |
| 272 | if not len(aliases.keys()) == 1: |
| 273 | return dict(common_items) |
| 274 | |
| 275 | # Build a single select statement where each conditional has accounted for the |
| 276 | # common set of aliases. |
| 277 | crate_aliases = {"//conditions:default": common_items} |
| 278 | for condition, deps in aliases.items(): |
| 279 | condition_triples = _CONDITIONS[condition] |
| 280 | if condition_triples in crate_aliases: |
| 281 | crate_aliases[condition_triples].update(deps) |
| 282 | else: |
| 283 | crate_aliases.update({_CONDITIONS[condition]: dict(deps.items() + common_items)}) |
| 284 | |
| 285 | return selects.with_or(crate_aliases) |
| 286 | |
| 287 | ############################################################################### |
| 288 | # WORKSPACE MEMBER DEPS AND ALIASES |
| 289 | ############################################################################### |
| 290 | |
| 291 | _NORMAL_DEPENDENCIES = { |
| 292 | "": { |
| 293 | _COMMON_CONDITION: { |
| 294 | "git2": "@complex_sys__git2-0.14.4//:git2", |
| 295 | }, |
| 296 | }, |
| 297 | } |
| 298 | |
| 299 | _NORMAL_ALIASES = { |
| 300 | "": { |
| 301 | _COMMON_CONDITION: { |
| 302 | }, |
| 303 | }, |
| 304 | } |
| 305 | |
| 306 | _NORMAL_DEV_DEPENDENCIES = { |
| 307 | "": { |
| 308 | }, |
| 309 | } |
| 310 | |
| 311 | _NORMAL_DEV_ALIASES = { |
| 312 | "": { |
| 313 | }, |
| 314 | } |
| 315 | |
| 316 | _PROC_MACRO_DEPENDENCIES = { |
| 317 | "": { |
| 318 | }, |
| 319 | } |
| 320 | |
| 321 | _PROC_MACRO_ALIASES = { |
| 322 | "": { |
| 323 | }, |
| 324 | } |
| 325 | |
| 326 | _PROC_MACRO_DEV_DEPENDENCIES = { |
| 327 | "": { |
| 328 | }, |
| 329 | } |
| 330 | |
| 331 | _PROC_MACRO_DEV_ALIASES = { |
| 332 | "": { |
| 333 | }, |
| 334 | } |
| 335 | |
| 336 | _BUILD_DEPENDENCIES = { |
| 337 | "": { |
| 338 | }, |
| 339 | } |
| 340 | |
| 341 | _BUILD_ALIASES = { |
| 342 | "": { |
| 343 | }, |
| 344 | } |
| 345 | |
| 346 | _BUILD_PROC_MACRO_DEPENDENCIES = { |
| 347 | "": { |
| 348 | }, |
| 349 | } |
| 350 | |
| 351 | _BUILD_PROC_MACRO_ALIASES = { |
| 352 | "": { |
| 353 | }, |
| 354 | } |
| 355 | |
| 356 | _CONDITIONS = { |
| 357 | "cfg(unix)": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "s390x-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "x86_64-unknown-linux-gnu"], |
| 358 | } |
| 359 | |
| 360 | ############################################################################### |
| 361 | |
| 362 | def crate_repositories(): |
| 363 | """A macro for defining repositories for all generated crates""" |
| 364 | maybe( |
| 365 | http_archive, |
| 366 | name = "complex_sys__bitflags-1.3.2", |
| 367 | sha256 = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a", |
| 368 | type = "tar.gz", |
| 369 | urls = ["https://crates.io/api/v1/crates/bitflags/1.3.2/download"], |
| 370 | strip_prefix = "bitflags-1.3.2", |
| 371 | build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.bitflags-1.3.2.bazel"), |
| 372 | ) |
| 373 | |
| 374 | maybe( |
| 375 | http_archive, |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 376 | name = "complex_sys__cc-1.0.77", |
| 377 | sha256 = "e9f73505338f7d905b19d18738976aae232eb46b8efc15554ffc56deb5d9ebe4", |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 378 | type = "tar.gz", |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 379 | urls = ["https://crates.io/api/v1/crates/cc/1.0.77/download"], |
| 380 | strip_prefix = "cc-1.0.77", |
| 381 | build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.cc-1.0.77.bazel"), |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 382 | ) |
| 383 | |
| 384 | maybe( |
| 385 | http_archive, |
| 386 | name = "complex_sys__cfg-if-1.0.0", |
| 387 | sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd", |
| 388 | type = "tar.gz", |
| 389 | urls = ["https://crates.io/api/v1/crates/cfg-if/1.0.0/download"], |
| 390 | strip_prefix = "cfg-if-1.0.0", |
| 391 | build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.cfg-if-1.0.0.bazel"), |
| 392 | ) |
| 393 | |
| 394 | maybe( |
| 395 | http_archive, |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 396 | name = "complex_sys__form_urlencoded-1.1.0", |
| 397 | sha256 = "a9c384f161156f5260c24a097c56119f9be8c798586aecc13afbcbe7b7e26bf8", |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 398 | type = "tar.gz", |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 399 | urls = ["https://crates.io/api/v1/crates/form_urlencoded/1.1.0/download"], |
| 400 | strip_prefix = "form_urlencoded-1.1.0", |
| 401 | build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.form_urlencoded-1.1.0.bazel"), |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 402 | ) |
| 403 | |
| 404 | maybe( |
| 405 | http_archive, |
| 406 | name = "complex_sys__git2-0.14.4", |
| 407 | sha256 = "d0155506aab710a86160ddb504a480d2964d7ab5b9e62419be69e0032bc5931c", |
| 408 | type = "tar.gz", |
| 409 | urls = ["https://crates.io/api/v1/crates/git2/0.14.4/download"], |
| 410 | strip_prefix = "git2-0.14.4", |
| 411 | build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.git2-0.14.4.bazel"), |
| 412 | ) |
| 413 | |
| 414 | maybe( |
| 415 | http_archive, |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 416 | name = "complex_sys__idna-0.3.0", |
| 417 | sha256 = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6", |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 418 | type = "tar.gz", |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 419 | urls = ["https://crates.io/api/v1/crates/idna/0.3.0/download"], |
| 420 | strip_prefix = "idna-0.3.0", |
| 421 | build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.idna-0.3.0.bazel"), |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 422 | ) |
| 423 | |
| 424 | maybe( |
| 425 | http_archive, |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 426 | name = "complex_sys__jobserver-0.1.25", |
| 427 | sha256 = "068b1ee6743e4d11fb9c6a1e6064b3693a1b600e7f5f5988047d98b3dc9fb90b", |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 428 | type = "tar.gz", |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 429 | urls = ["https://crates.io/api/v1/crates/jobserver/0.1.25/download"], |
| 430 | strip_prefix = "jobserver-0.1.25", |
| 431 | build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.jobserver-0.1.25.bazel"), |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 432 | ) |
| 433 | |
| 434 | maybe( |
| 435 | http_archive, |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 436 | name = "complex_sys__libc-0.2.137", |
| 437 | sha256 = "fc7fcc620a3bff7cdd7a365be3376c97191aeaccc2a603e600951e452615bf89", |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 438 | type = "tar.gz", |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 439 | urls = ["https://crates.io/api/v1/crates/libc/0.2.137/download"], |
| 440 | strip_prefix = "libc-0.2.137", |
| 441 | build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.libc-0.2.137.bazel"), |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 442 | ) |
| 443 | |
| 444 | maybe( |
| 445 | http_archive, |
| 446 | name = "complex_sys__libgit2-sys-0.13.4-1.4.2", |
| 447 | sha256 = "d0fa6563431ede25f5cc7f6d803c6afbc1c5d3ad3d4925d12c882bf2b526f5d1", |
| 448 | type = "tar.gz", |
| 449 | urls = ["https://crates.io/api/v1/crates/libgit2-sys/0.13.4+1.4.2/download"], |
| 450 | strip_prefix = "libgit2-sys-0.13.4+1.4.2", |
| 451 | build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.libgit2-sys-0.13.4+1.4.2.bazel"), |
| 452 | ) |
| 453 | |
| 454 | maybe( |
| 455 | http_archive, |
| 456 | name = "complex_sys__libz-sys-1.1.8", |
| 457 | sha256 = "9702761c3935f8cc2f101793272e202c72b99da8f4224a19ddcf1279a6450bbf", |
| 458 | type = "tar.gz", |
| 459 | urls = ["https://crates.io/api/v1/crates/libz-sys/1.1.8/download"], |
| 460 | strip_prefix = "libz-sys-1.1.8", |
| 461 | build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.libz-sys-1.1.8.bazel"), |
| 462 | ) |
| 463 | |
| 464 | maybe( |
| 465 | http_archive, |
| 466 | name = "complex_sys__log-0.4.17", |
| 467 | sha256 = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e", |
| 468 | type = "tar.gz", |
| 469 | urls = ["https://crates.io/api/v1/crates/log/0.4.17/download"], |
| 470 | strip_prefix = "log-0.4.17", |
| 471 | build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.log-0.4.17.bazel"), |
| 472 | ) |
| 473 | |
| 474 | maybe( |
| 475 | http_archive, |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 476 | name = "complex_sys__percent-encoding-2.2.0", |
| 477 | sha256 = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e", |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 478 | type = "tar.gz", |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 479 | urls = ["https://crates.io/api/v1/crates/percent-encoding/2.2.0/download"], |
| 480 | strip_prefix = "percent-encoding-2.2.0", |
| 481 | build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.percent-encoding-2.2.0.bazel"), |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 482 | ) |
| 483 | |
| 484 | maybe( |
| 485 | http_archive, |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 486 | name = "complex_sys__pkg-config-0.3.26", |
| 487 | sha256 = "6ac9a59f73473f1b8d852421e59e64809f025994837ef743615c6d0c5b305160", |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 488 | type = "tar.gz", |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 489 | urls = ["https://crates.io/api/v1/crates/pkg-config/0.3.26/download"], |
| 490 | strip_prefix = "pkg-config-0.3.26", |
| 491 | build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.pkg-config-0.3.26.bazel"), |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 492 | ) |
| 493 | |
| 494 | maybe( |
| 495 | http_archive, |
| 496 | name = "complex_sys__tinyvec-1.6.0", |
| 497 | sha256 = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50", |
| 498 | type = "tar.gz", |
| 499 | urls = ["https://crates.io/api/v1/crates/tinyvec/1.6.0/download"], |
| 500 | strip_prefix = "tinyvec-1.6.0", |
| 501 | build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.tinyvec-1.6.0.bazel"), |
| 502 | ) |
| 503 | |
| 504 | maybe( |
| 505 | http_archive, |
| 506 | name = "complex_sys__tinyvec_macros-0.1.0", |
| 507 | sha256 = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c", |
| 508 | type = "tar.gz", |
| 509 | urls = ["https://crates.io/api/v1/crates/tinyvec_macros/0.1.0/download"], |
| 510 | strip_prefix = "tinyvec_macros-0.1.0", |
| 511 | build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.tinyvec_macros-0.1.0.bazel"), |
| 512 | ) |
| 513 | |
| 514 | maybe( |
| 515 | http_archive, |
| 516 | name = "complex_sys__unicode-bidi-0.3.8", |
| 517 | sha256 = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992", |
| 518 | type = "tar.gz", |
| 519 | urls = ["https://crates.io/api/v1/crates/unicode-bidi/0.3.8/download"], |
| 520 | strip_prefix = "unicode-bidi-0.3.8", |
| 521 | build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.unicode-bidi-0.3.8.bazel"), |
| 522 | ) |
| 523 | |
| 524 | maybe( |
| 525 | http_archive, |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 526 | name = "complex_sys__unicode-normalization-0.1.22", |
| 527 | sha256 = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921", |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 528 | type = "tar.gz", |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 529 | urls = ["https://crates.io/api/v1/crates/unicode-normalization/0.1.22/download"], |
| 530 | strip_prefix = "unicode-normalization-0.1.22", |
| 531 | build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.unicode-normalization-0.1.22.bazel"), |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 532 | ) |
| 533 | |
| 534 | maybe( |
| 535 | http_archive, |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 536 | name = "complex_sys__url-2.3.1", |
| 537 | sha256 = "0d68c799ae75762b8c3fe375feb6600ef5602c883c5d21eb51c09f22b83c4643", |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 538 | type = "tar.gz", |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 539 | urls = ["https://crates.io/api/v1/crates/url/2.3.1/download"], |
| 540 | strip_prefix = "url-2.3.1", |
| 541 | build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.url-2.3.1.bazel"), |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 542 | ) |
| 543 | |
| 544 | maybe( |
| 545 | http_archive, |
| 546 | name = "complex_sys__vcpkg-0.2.15", |
| 547 | sha256 = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426", |
| 548 | type = "tar.gz", |
| 549 | urls = ["https://crates.io/api/v1/crates/vcpkg/0.2.15/download"], |
| 550 | strip_prefix = "vcpkg-0.2.15", |
| 551 | build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.vcpkg-0.2.15.bazel"), |
| 552 | ) |