mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
835 lines
33 KiB
Python
Generated
835 lines
33 KiB
Python
Generated
###############################################################################
|
|
# @generated
|
|
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
|
|
# regenerate this file, run the following:
|
|
#
|
|
# bazel run @@//misc/bazel/3rdparty:vendor_py_deps
|
|
###############################################################################
|
|
"""
|
|
# `crates_repository` API
|
|
|
|
- [aliases](#aliases)
|
|
- [crate_deps](#crate_deps)
|
|
- [all_crate_deps](#all_crate_deps)
|
|
- [crate_repositories](#crate_repositories)
|
|
|
|
"""
|
|
|
|
load("@bazel_skylib//lib:selects.bzl", "selects")
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
|
|
|
|
###############################################################################
|
|
# MACROS API
|
|
###############################################################################
|
|
|
|
# An identifier that represent common dependencies (unconditional).
|
|
_COMMON_CONDITION = ""
|
|
|
|
def _flatten_dependency_maps(all_dependency_maps):
|
|
"""Flatten a list of dependency maps into one dictionary.
|
|
|
|
Dependency maps have the following structure:
|
|
|
|
```python
|
|
DEPENDENCIES_MAP = {
|
|
# The first key in the map is a Bazel package
|
|
# name of the workspace this file is defined in.
|
|
"workspace_member_package": {
|
|
|
|
# Not all dependencies are supported for all platforms.
|
|
# the condition key is the condition required to be true
|
|
# on the host platform.
|
|
"condition": {
|
|
|
|
# An alias to a crate target. # The label of the crate target the
|
|
# Aliases are only crate names. # package name refers to.
|
|
"package_name": "@full//:label",
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
Args:
|
|
all_dependency_maps (list): A list of dicts as described above
|
|
|
|
Returns:
|
|
dict: A dictionary as described above
|
|
"""
|
|
dependencies = {}
|
|
|
|
for workspace_deps_map in all_dependency_maps:
|
|
for pkg_name, conditional_deps_map in workspace_deps_map.items():
|
|
if pkg_name not in dependencies:
|
|
non_frozen_map = dict()
|
|
for key, values in conditional_deps_map.items():
|
|
non_frozen_map.update({key: dict(values.items())})
|
|
dependencies.setdefault(pkg_name, non_frozen_map)
|
|
continue
|
|
|
|
for condition, deps_map in conditional_deps_map.items():
|
|
# If the condition has not been recorded, do so and continue
|
|
if condition not in dependencies[pkg_name]:
|
|
dependencies[pkg_name].setdefault(condition, dict(deps_map.items()))
|
|
continue
|
|
|
|
# Alert on any miss-matched dependencies
|
|
inconsistent_entries = []
|
|
for crate_name, crate_label in deps_map.items():
|
|
existing = dependencies[pkg_name][condition].get(crate_name)
|
|
if existing and existing != crate_label:
|
|
inconsistent_entries.append((crate_name, existing, crate_label))
|
|
dependencies[pkg_name][condition].update({crate_name: crate_label})
|
|
|
|
return dependencies
|
|
|
|
def crate_deps(deps, package_name = None):
|
|
"""Finds the fully qualified label of the requested crates for the package where this macro is called.
|
|
|
|
Args:
|
|
deps (list): The desired list of crate targets.
|
|
package_name (str, optional): The package name of the set of dependencies to look up.
|
|
Defaults to `native.package_name()`.
|
|
|
|
Returns:
|
|
list: A list of labels to generated rust targets (str)
|
|
"""
|
|
|
|
if not deps:
|
|
return []
|
|
|
|
if package_name == None:
|
|
package_name = native.package_name()
|
|
|
|
# Join both sets of dependencies
|
|
dependencies = _flatten_dependency_maps([
|
|
_NORMAL_DEPENDENCIES,
|
|
_NORMAL_DEV_DEPENDENCIES,
|
|
_PROC_MACRO_DEPENDENCIES,
|
|
_PROC_MACRO_DEV_DEPENDENCIES,
|
|
_BUILD_DEPENDENCIES,
|
|
_BUILD_PROC_MACRO_DEPENDENCIES,
|
|
]).pop(package_name, {})
|
|
|
|
# Combine all conditional packages so we can easily index over a flat list
|
|
# TODO: Perhaps this should actually return select statements and maintain
|
|
# the conditionals of the dependencies
|
|
flat_deps = {}
|
|
for deps_set in dependencies.values():
|
|
for crate_name, crate_label in deps_set.items():
|
|
flat_deps.update({crate_name: crate_label})
|
|
|
|
missing_crates = []
|
|
crate_targets = []
|
|
for crate_target in deps:
|
|
if crate_target not in flat_deps:
|
|
missing_crates.append(crate_target)
|
|
else:
|
|
crate_targets.append(flat_deps[crate_target])
|
|
|
|
if missing_crates:
|
|
fail("Could not find crates `{}` among dependencies of `{}`. Available dependencies were `{}`".format(
|
|
missing_crates,
|
|
package_name,
|
|
dependencies,
|
|
))
|
|
|
|
return crate_targets
|
|
|
|
def all_crate_deps(
|
|
normal = False,
|
|
normal_dev = False,
|
|
proc_macro = False,
|
|
proc_macro_dev = False,
|
|
build = False,
|
|
build_proc_macro = False,
|
|
package_name = None):
|
|
"""Finds the fully qualified label of all requested direct crate dependencies \
|
|
for the package where this macro is called.
|
|
|
|
If no parameters are set, all normal dependencies are returned. Setting any one flag will
|
|
otherwise impact the contents of the returned list.
|
|
|
|
Args:
|
|
normal (bool, optional): If True, normal dependencies are included in the
|
|
output list.
|
|
normal_dev (bool, optional): If True, normal dev dependencies will be
|
|
included in the output list..
|
|
proc_macro (bool, optional): If True, proc_macro dependencies are included
|
|
in the output list.
|
|
proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are
|
|
included in the output list.
|
|
build (bool, optional): If True, build dependencies are included
|
|
in the output list.
|
|
build_proc_macro (bool, optional): If True, build proc_macro dependencies are
|
|
included in the output list.
|
|
package_name (str, optional): The package name of the set of dependencies to look up.
|
|
Defaults to `native.package_name()` when unset.
|
|
|
|
Returns:
|
|
list: A list of labels to generated rust targets (str)
|
|
"""
|
|
|
|
if package_name == None:
|
|
package_name = native.package_name()
|
|
|
|
# Determine the relevant maps to use
|
|
all_dependency_maps = []
|
|
if normal:
|
|
all_dependency_maps.append(_NORMAL_DEPENDENCIES)
|
|
if normal_dev:
|
|
all_dependency_maps.append(_NORMAL_DEV_DEPENDENCIES)
|
|
if proc_macro:
|
|
all_dependency_maps.append(_PROC_MACRO_DEPENDENCIES)
|
|
if proc_macro_dev:
|
|
all_dependency_maps.append(_PROC_MACRO_DEV_DEPENDENCIES)
|
|
if build:
|
|
all_dependency_maps.append(_BUILD_DEPENDENCIES)
|
|
if build_proc_macro:
|
|
all_dependency_maps.append(_BUILD_PROC_MACRO_DEPENDENCIES)
|
|
|
|
# Default to always using normal dependencies
|
|
if not all_dependency_maps:
|
|
all_dependency_maps.append(_NORMAL_DEPENDENCIES)
|
|
|
|
dependencies = _flatten_dependency_maps(all_dependency_maps).pop(package_name, None)
|
|
|
|
if not dependencies:
|
|
if dependencies == None:
|
|
fail("Tried to get all_crate_deps for package " + package_name + " but that package had no Cargo.toml file")
|
|
else:
|
|
return []
|
|
|
|
crate_deps = list(dependencies.pop(_COMMON_CONDITION, {}).values())
|
|
for condition, deps in dependencies.items():
|
|
crate_deps += selects.with_or({
|
|
tuple(_CONDITIONS[condition]): deps.values(),
|
|
"//conditions:default": [],
|
|
})
|
|
|
|
return crate_deps
|
|
|
|
def aliases(
|
|
normal = False,
|
|
normal_dev = False,
|
|
proc_macro = False,
|
|
proc_macro_dev = False,
|
|
build = False,
|
|
build_proc_macro = False,
|
|
package_name = None):
|
|
"""Produces a map of Crate alias names to their original label
|
|
|
|
If no dependency kinds are specified, `normal` and `proc_macro` are used by default.
|
|
Setting any one flag will otherwise determine the contents of the returned dict.
|
|
|
|
Args:
|
|
normal (bool, optional): If True, normal dependencies are included in the
|
|
output list.
|
|
normal_dev (bool, optional): If True, normal dev dependencies will be
|
|
included in the output list..
|
|
proc_macro (bool, optional): If True, proc_macro dependencies are included
|
|
in the output list.
|
|
proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are
|
|
included in the output list.
|
|
build (bool, optional): If True, build dependencies are included
|
|
in the output list.
|
|
build_proc_macro (bool, optional): If True, build proc_macro dependencies are
|
|
included in the output list.
|
|
package_name (str, optional): The package name of the set of dependencies to look up.
|
|
Defaults to `native.package_name()` when unset.
|
|
|
|
Returns:
|
|
dict: The aliases of all associated packages
|
|
"""
|
|
if package_name == None:
|
|
package_name = native.package_name()
|
|
|
|
# Determine the relevant maps to use
|
|
all_aliases_maps = []
|
|
if normal:
|
|
all_aliases_maps.append(_NORMAL_ALIASES)
|
|
if normal_dev:
|
|
all_aliases_maps.append(_NORMAL_DEV_ALIASES)
|
|
if proc_macro:
|
|
all_aliases_maps.append(_PROC_MACRO_ALIASES)
|
|
if proc_macro_dev:
|
|
all_aliases_maps.append(_PROC_MACRO_DEV_ALIASES)
|
|
if build:
|
|
all_aliases_maps.append(_BUILD_ALIASES)
|
|
if build_proc_macro:
|
|
all_aliases_maps.append(_BUILD_PROC_MACRO_ALIASES)
|
|
|
|
# Default to always using normal aliases
|
|
if not all_aliases_maps:
|
|
all_aliases_maps.append(_NORMAL_ALIASES)
|
|
all_aliases_maps.append(_PROC_MACRO_ALIASES)
|
|
|
|
aliases = _flatten_dependency_maps(all_aliases_maps).pop(package_name, None)
|
|
|
|
if not aliases:
|
|
return dict()
|
|
|
|
common_items = aliases.pop(_COMMON_CONDITION, {}).items()
|
|
|
|
# If there are only common items in the dictionary, immediately return them
|
|
if not len(aliases.keys()) == 1:
|
|
return dict(common_items)
|
|
|
|
# Build a single select statement where each conditional has accounted for the
|
|
# common set of aliases.
|
|
crate_aliases = {"//conditions:default": dict(common_items)}
|
|
for condition, deps in aliases.items():
|
|
condition_triples = _CONDITIONS[condition]
|
|
for triple in condition_triples:
|
|
if triple in crate_aliases:
|
|
crate_aliases[triple].update(deps)
|
|
else:
|
|
crate_aliases.update({triple: dict(deps.items() + common_items)})
|
|
|
|
return select(crate_aliases)
|
|
|
|
###############################################################################
|
|
# WORKSPACE MEMBER DEPS AND ALIASES
|
|
###############################################################################
|
|
|
|
_NORMAL_DEPENDENCIES = {
|
|
"python/extractor/tsg-python": {
|
|
_COMMON_CONDITION: {
|
|
"anyhow": Label("@vendor__anyhow-1.0.44//:anyhow"),
|
|
"clap": Label("@vendor__clap-2.33.3//:clap"),
|
|
"regex": Label("@vendor__regex-1.5.5//:regex"),
|
|
"smallvec": Label("@vendor__smallvec-1.6.1//:smallvec"),
|
|
"string-interner": Label("@vendor__string-interner-0.12.2//:string_interner"),
|
|
"thiserror": Label("@vendor__thiserror-1.0.29//:thiserror"),
|
|
"tree-sitter": Label("@vendor__tree-sitter-0.20.4//:tree_sitter"),
|
|
"tree-sitter-graph": Label("@vendor__tree-sitter-graph-0.7.0//:tree_sitter_graph"),
|
|
},
|
|
},
|
|
"python/extractor/tsg-python/tsp": {
|
|
_COMMON_CONDITION: {
|
|
"tree-sitter": Label("@vendor__tree-sitter-0.20.4//:tree_sitter"),
|
|
},
|
|
},
|
|
}
|
|
|
|
_NORMAL_ALIASES = {
|
|
"python/extractor/tsg-python": {
|
|
_COMMON_CONDITION: {
|
|
},
|
|
},
|
|
"python/extractor/tsg-python/tsp": {
|
|
_COMMON_CONDITION: {
|
|
},
|
|
},
|
|
}
|
|
|
|
_NORMAL_DEV_DEPENDENCIES = {
|
|
"python/extractor/tsg-python": {
|
|
},
|
|
"python/extractor/tsg-python/tsp": {
|
|
},
|
|
}
|
|
|
|
_NORMAL_DEV_ALIASES = {
|
|
"python/extractor/tsg-python": {
|
|
},
|
|
"python/extractor/tsg-python/tsp": {
|
|
},
|
|
}
|
|
|
|
_PROC_MACRO_DEPENDENCIES = {
|
|
"python/extractor/tsg-python": {
|
|
},
|
|
"python/extractor/tsg-python/tsp": {
|
|
},
|
|
}
|
|
|
|
_PROC_MACRO_ALIASES = {
|
|
"python/extractor/tsg-python": {
|
|
},
|
|
"python/extractor/tsg-python/tsp": {
|
|
},
|
|
}
|
|
|
|
_PROC_MACRO_DEV_DEPENDENCIES = {
|
|
"python/extractor/tsg-python": {
|
|
},
|
|
"python/extractor/tsg-python/tsp": {
|
|
},
|
|
}
|
|
|
|
_PROC_MACRO_DEV_ALIASES = {
|
|
"python/extractor/tsg-python": {
|
|
},
|
|
"python/extractor/tsg-python/tsp": {
|
|
},
|
|
}
|
|
|
|
_BUILD_DEPENDENCIES = {
|
|
"python/extractor/tsg-python": {
|
|
},
|
|
"python/extractor/tsg-python/tsp": {
|
|
_COMMON_CONDITION: {
|
|
"cc": Label("@vendor__cc-1.0.70//:cc"),
|
|
},
|
|
},
|
|
}
|
|
|
|
_BUILD_ALIASES = {
|
|
"python/extractor/tsg-python": {
|
|
},
|
|
"python/extractor/tsg-python/tsp": {
|
|
_COMMON_CONDITION: {
|
|
},
|
|
},
|
|
}
|
|
|
|
_BUILD_PROC_MACRO_DEPENDENCIES = {
|
|
"python/extractor/tsg-python": {
|
|
},
|
|
"python/extractor/tsg-python/tsp": {
|
|
},
|
|
}
|
|
|
|
_BUILD_PROC_MACRO_ALIASES = {
|
|
"python/extractor/tsg-python": {
|
|
},
|
|
"python/extractor/tsg-python/tsp": {
|
|
},
|
|
}
|
|
|
|
_CONDITIONS = {
|
|
"aarch64-apple-darwin": ["@rules_rust//rust/platform:aarch64-apple-darwin"],
|
|
"aarch64-apple-ios": ["@rules_rust//rust/platform:aarch64-apple-ios"],
|
|
"aarch64-apple-ios-sim": ["@rules_rust//rust/platform:aarch64-apple-ios-sim"],
|
|
"aarch64-linux-android": ["@rules_rust//rust/platform:aarch64-linux-android"],
|
|
"aarch64-pc-windows-msvc": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc"],
|
|
"aarch64-unknown-fuchsia": ["@rules_rust//rust/platform:aarch64-unknown-fuchsia"],
|
|
"aarch64-unknown-linux-gnu": ["@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu"],
|
|
"aarch64-unknown-nixos-gnu": ["@rules_rust//rust/platform:aarch64-unknown-nixos-gnu"],
|
|
"aarch64-unknown-nto-qnx710": ["@rules_rust//rust/platform:aarch64-unknown-nto-qnx710"],
|
|
"aarch64-unknown-uefi": ["@rules_rust//rust/platform:aarch64-unknown-uefi"],
|
|
"arm-unknown-linux-gnueabi": ["@rules_rust//rust/platform:arm-unknown-linux-gnueabi"],
|
|
"armv7-linux-androideabi": ["@rules_rust//rust/platform:armv7-linux-androideabi"],
|
|
"armv7-unknown-linux-gnueabi": ["@rules_rust//rust/platform:armv7-unknown-linux-gnueabi"],
|
|
"cfg(target_os = \"hermit\")": [],
|
|
"cfg(target_os = \"windows\")": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc"],
|
|
"cfg(unix)": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-fuchsia", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-fuchsia", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"],
|
|
"cfg(windows)": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc"],
|
|
"i686-apple-darwin": ["@rules_rust//rust/platform:i686-apple-darwin"],
|
|
"i686-linux-android": ["@rules_rust//rust/platform:i686-linux-android"],
|
|
"i686-pc-windows-gnu": [],
|
|
"i686-pc-windows-msvc": ["@rules_rust//rust/platform:i686-pc-windows-msvc"],
|
|
"i686-unknown-freebsd": ["@rules_rust//rust/platform:i686-unknown-freebsd"],
|
|
"i686-unknown-linux-gnu": ["@rules_rust//rust/platform:i686-unknown-linux-gnu"],
|
|
"powerpc-unknown-linux-gnu": ["@rules_rust//rust/platform:powerpc-unknown-linux-gnu"],
|
|
"riscv32imc-unknown-none-elf": ["@rules_rust//rust/platform:riscv32imc-unknown-none-elf"],
|
|
"riscv64gc-unknown-none-elf": ["@rules_rust//rust/platform:riscv64gc-unknown-none-elf"],
|
|
"s390x-unknown-linux-gnu": ["@rules_rust//rust/platform:s390x-unknown-linux-gnu"],
|
|
"thumbv7em-none-eabi": ["@rules_rust//rust/platform:thumbv7em-none-eabi"],
|
|
"thumbv8m.main-none-eabi": ["@rules_rust//rust/platform:thumbv8m.main-none-eabi"],
|
|
"wasm32-unknown-unknown": ["@rules_rust//rust/platform:wasm32-unknown-unknown"],
|
|
"wasm32-wasip1": ["@rules_rust//rust/platform:wasm32-wasip1"],
|
|
"x86_64-apple-darwin": ["@rules_rust//rust/platform:x86_64-apple-darwin"],
|
|
"x86_64-apple-ios": ["@rules_rust//rust/platform:x86_64-apple-ios"],
|
|
"x86_64-linux-android": ["@rules_rust//rust/platform:x86_64-linux-android"],
|
|
"x86_64-pc-windows-gnu": [],
|
|
"x86_64-pc-windows-msvc": ["@rules_rust//rust/platform:x86_64-pc-windows-msvc"],
|
|
"x86_64-unknown-freebsd": ["@rules_rust//rust/platform:x86_64-unknown-freebsd"],
|
|
"x86_64-unknown-fuchsia": ["@rules_rust//rust/platform:x86_64-unknown-fuchsia"],
|
|
"x86_64-unknown-linux-gnu": ["@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"],
|
|
"x86_64-unknown-nixos-gnu": ["@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"],
|
|
"x86_64-unknown-none": ["@rules_rust//rust/platform:x86_64-unknown-none"],
|
|
"x86_64-unknown-uefi": ["@rules_rust//rust/platform:x86_64-unknown-uefi"],
|
|
}
|
|
|
|
###############################################################################
|
|
|
|
def crate_repositories():
|
|
"""A macro for defining repositories for all generated crates.
|
|
|
|
Returns:
|
|
A list of repos visible to the module through the module extension.
|
|
"""
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__ahash-0.4.7",
|
|
sha256 = "739f4a8db6605981345c5654f3a85b056ce52f37a39d34da03f25bf2151ea16e",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/ahash/0.4.7/download"],
|
|
strip_prefix = "ahash-0.4.7",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.ahash-0.4.7.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__aho-corasick-0.7.18",
|
|
sha256 = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/aho-corasick/0.7.18/download"],
|
|
strip_prefix = "aho-corasick-0.7.18",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.aho-corasick-0.7.18.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__ansi_term-0.11.0",
|
|
sha256 = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/ansi_term/0.11.0/download"],
|
|
strip_prefix = "ansi_term-0.11.0",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.ansi_term-0.11.0.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__anyhow-1.0.44",
|
|
sha256 = "61604a8f862e1d5c3229fdd78f8b02c68dcf73a4c4b05fd636d12240aaa242c1",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/anyhow/1.0.44/download"],
|
|
strip_prefix = "anyhow-1.0.44",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.anyhow-1.0.44.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__atty-0.2.14",
|
|
sha256 = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/atty/0.2.14/download"],
|
|
strip_prefix = "atty-0.2.14",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.atty-0.2.14.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__bitflags-1.3.2",
|
|
sha256 = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/bitflags/1.3.2/download"],
|
|
strip_prefix = "bitflags-1.3.2",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.bitflags-1.3.2.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__cc-1.0.70",
|
|
sha256 = "d26a6ce4b6a484fa3edb70f7efa6fc430fd2b87285fe8b84304fd0936faa0dc0",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/cc/1.0.70/download"],
|
|
strip_prefix = "cc-1.0.70",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.cc-1.0.70.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__cfg-if-1.0.0",
|
|
sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/cfg-if/1.0.0/download"],
|
|
strip_prefix = "cfg-if-1.0.0",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.cfg-if-1.0.0.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__clap-2.33.3",
|
|
sha256 = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/clap/2.33.3/download"],
|
|
strip_prefix = "clap-2.33.3",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.clap-2.33.3.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__hashbrown-0.9.1",
|
|
sha256 = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/hashbrown/0.9.1/download"],
|
|
strip_prefix = "hashbrown-0.9.1",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.hashbrown-0.9.1.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__hermit-abi-0.1.19",
|
|
sha256 = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/hermit-abi/0.1.19/download"],
|
|
strip_prefix = "hermit-abi-0.1.19",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.hermit-abi-0.1.19.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__itoa-1.0.1",
|
|
sha256 = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/itoa/1.0.1/download"],
|
|
strip_prefix = "itoa-1.0.1",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.itoa-1.0.1.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__libc-0.2.101",
|
|
sha256 = "3cb00336871be5ed2c8ed44b60ae9959dc5b9f08539422ed43f09e34ecaeba21",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/libc/0.2.101/download"],
|
|
strip_prefix = "libc-0.2.101",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.libc-0.2.101.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__log-0.4.14",
|
|
sha256 = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/log/0.4.14/download"],
|
|
strip_prefix = "log-0.4.14",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.log-0.4.14.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__memchr-2.4.1",
|
|
sha256 = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/memchr/2.4.1/download"],
|
|
strip_prefix = "memchr-2.4.1",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.memchr-2.4.1.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__proc-macro2-1.0.29",
|
|
sha256 = "b9f5105d4fdaab20335ca9565e106a5d9b82b6219b5ba735731124ac6711d23d",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/proc-macro2/1.0.29/download"],
|
|
strip_prefix = "proc-macro2-1.0.29",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.proc-macro2-1.0.29.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__quote-1.0.9",
|
|
sha256 = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/quote/1.0.9/download"],
|
|
strip_prefix = "quote-1.0.9",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.quote-1.0.9.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__regex-1.5.5",
|
|
sha256 = "1a11647b6b25ff05a515cb92c365cec08801e83423a235b51e231e1808747286",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/regex/1.5.5/download"],
|
|
strip_prefix = "regex-1.5.5",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.regex-1.5.5.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__regex-syntax-0.6.25",
|
|
sha256 = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/regex-syntax/0.6.25/download"],
|
|
strip_prefix = "regex-syntax-0.6.25",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.regex-syntax-0.6.25.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__ryu-1.0.9",
|
|
sha256 = "73b4b750c782965c211b42f022f59af1fbceabdd026623714f104152f1ec149f",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/ryu/1.0.9/download"],
|
|
strip_prefix = "ryu-1.0.9",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.ryu-1.0.9.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__serde-1.0.136",
|
|
sha256 = "ce31e24b01e1e524df96f1c2fdd054405f8d7376249a5110886fb4b658484789",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/serde/1.0.136/download"],
|
|
strip_prefix = "serde-1.0.136",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.serde-1.0.136.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__serde_json-1.0.79",
|
|
sha256 = "8e8d9fa5c3b304765ce1fd9c4c8a3de2c8db365a5b91be52f186efc675681d95",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/serde_json/1.0.79/download"],
|
|
strip_prefix = "serde_json-1.0.79",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.serde_json-1.0.79.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__smallvec-1.6.1",
|
|
sha256 = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/smallvec/1.6.1/download"],
|
|
strip_prefix = "smallvec-1.6.1",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.smallvec-1.6.1.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__string-interner-0.12.2",
|
|
sha256 = "383196d1876517ee6f9f0864d1fc1070331b803335d3c6daaa04bbcccd823c08",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/string-interner/0.12.2/download"],
|
|
strip_prefix = "string-interner-0.12.2",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.string-interner-0.12.2.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__strsim-0.8.0",
|
|
sha256 = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/strsim/0.8.0/download"],
|
|
strip_prefix = "strsim-0.8.0",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.strsim-0.8.0.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__syn-1.0.76",
|
|
sha256 = "c6f107db402c2c2055242dbf4d2af0e69197202e9faacbef9571bbe47f5a1b84",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/syn/1.0.76/download"],
|
|
strip_prefix = "syn-1.0.76",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.syn-1.0.76.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__textwrap-0.11.0",
|
|
sha256 = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/textwrap/0.11.0/download"],
|
|
strip_prefix = "textwrap-0.11.0",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.textwrap-0.11.0.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__thiserror-1.0.29",
|
|
sha256 = "602eca064b2d83369e2b2f34b09c70b605402801927c65c11071ac911d299b88",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/thiserror/1.0.29/download"],
|
|
strip_prefix = "thiserror-1.0.29",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.thiserror-1.0.29.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__thiserror-impl-1.0.29",
|
|
sha256 = "bad553cc2c78e8de258400763a647e80e6d1b31ee237275d756f6836d204494c",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/thiserror-impl/1.0.29/download"],
|
|
strip_prefix = "thiserror-impl-1.0.29",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.thiserror-impl-1.0.29.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__tree-sitter-0.20.4",
|
|
sha256 = "4e34327f8eac545e3f037382471b2b19367725a242bba7bc45edb9efb49fe39a",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/tree-sitter/0.20.4/download"],
|
|
strip_prefix = "tree-sitter-0.20.4",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.tree-sitter-0.20.4.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__tree-sitter-graph-0.7.0",
|
|
sha256 = "639d21e886f581d293de5f5081f09af003c54607ff3fa85efa159b243ba1f97a",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/tree-sitter-graph/0.7.0/download"],
|
|
strip_prefix = "tree-sitter-graph-0.7.0",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.tree-sitter-graph-0.7.0.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__unicode-width-0.1.8",
|
|
sha256 = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/unicode-width/0.1.8/download"],
|
|
strip_prefix = "unicode-width-0.1.8",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.unicode-width-0.1.8.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__unicode-xid-0.2.2",
|
|
sha256 = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/unicode-xid/0.2.2/download"],
|
|
strip_prefix = "unicode-xid-0.2.2",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.unicode-xid-0.2.2.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__vec_map-0.8.2",
|
|
sha256 = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/vec_map/0.8.2/download"],
|
|
strip_prefix = "vec_map-0.8.2",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.vec_map-0.8.2.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__winapi-0.3.9",
|
|
sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/winapi/0.3.9/download"],
|
|
strip_prefix = "winapi-0.3.9",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.winapi-0.3.9.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__winapi-i686-pc-windows-gnu-0.4.0",
|
|
sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/winapi-i686-pc-windows-gnu/0.4.0/download"],
|
|
strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"),
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "vendor__winapi-x86_64-pc-windows-gnu-0.4.0",
|
|
sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f",
|
|
type = "tar.gz",
|
|
urls = ["https://static.crates.io/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download"],
|
|
strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0",
|
|
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"),
|
|
)
|
|
|
|
return [
|
|
struct(repo = "vendor__anyhow-1.0.44", is_dev_dep = False),
|
|
struct(repo = "vendor__cc-1.0.70", is_dev_dep = False),
|
|
struct(repo = "vendor__clap-2.33.3", is_dev_dep = False),
|
|
struct(repo = "vendor__regex-1.5.5", is_dev_dep = False),
|
|
struct(repo = "vendor__smallvec-1.6.1", is_dev_dep = False),
|
|
struct(repo = "vendor__string-interner-0.12.2", is_dev_dep = False),
|
|
struct(repo = "vendor__thiserror-1.0.29", is_dev_dep = False),
|
|
struct(repo = "vendor__tree-sitter-0.20.4", is_dev_dep = False),
|
|
struct(repo = "vendor__tree-sitter-graph-0.7.0", is_dev_dep = False),
|
|
]
|