cabal-buck2-0.6.0.0: buck2/prelude/rust/tools/BUCK
load("@prelude//utils:source_listing.bzl", "source_listing")
load(":attrs.bzl", "rust_internal_tools_toolchain")
load(
":tool_rules.bzl",
"get_rustc_cfg",
"get_rustc_host_tuple",
"linkable_symbol_supports_no_std",
)
oncall("build_infra")
source_listing()
prelude = native
get_rustc_cfg(
name = "rustc_cfg",
visibility = ["PUBLIC"],
)
get_rustc_host_tuple(
name = "rustc_host_tuple",
visibility = ["PUBLIC"],
)
prelude.python_bootstrap_binary(
name = "extract_link_action",
has_content_based_path = True,
main = "extract_link_action.py",
visibility = ["PUBLIC"],
)
prelude.python_bootstrap_binary(
name = "rustc_action",
has_content_based_path = True,
main = "rustc_action.py",
visibility = ["PUBLIC"],
)
prelude.python_bootstrap_binary(
name = "rustdoc_test_with_resources",
has_content_based_path = True,
main = "rustdoc_test_with_resources.py",
visibility = ["PUBLIC"],
)
prelude.python_bootstrap_binary(
name = "failure_filter_action",
has_content_based_path = True,
main = "failure_filter_action.py",
visibility = ["PUBLIC"],
)
prelude.python_bootstrap_binary(
name = "transitive_dependency_symlinks",
has_content_based_path = True,
main = "transitive_dependency_symlinks.py",
visibility = ["PUBLIC"],
)
prelude.python_bootstrap_binary(
name = "buildscript_run",
has_content_based_path = True,
main = "buildscript_run.py",
visibility = ["PUBLIC"],
)
prelude.python_bootstrap_binary(
name = "from_any_dir",
has_content_based_path = True,
main = "from_any_dir.py",
visibility = ["PUBLIC"],
)
prelude.python_bootstrap_binary(
name = "rustdoc_coverage",
has_content_based_path = True,
main = "rustdoc_coverage.py",
visibility = ["PUBLIC"],
)
prelude.python_bootstrap_binary(
name = "redirect_stdout",
has_content_based_path = True,
main = "redirect_stdout.py",
visibility = ["PUBLIC"],
)
prelude.python_bootstrap_binary(
name = "symlink_only_dir_entry",
has_content_based_path = True,
main = "symlink_only_dir_entry.py",
visibility = ["PUBLIC"],
)
prelude.python_bootstrap_binary(
name = "shared_libraries_symlink_tree",
has_content_based_path = True,
main = "shared_libraries_symlink_tree.py",
visibility = ["PUBLIC"],
)
prelude.python_bootstrap_binary(
name = "cd_run",
has_content_based_path = True,
main = "cd_run.py",
visibility = ["PUBLIC"],
)
prelude.export_file(
name = "linkable_symbol.rs",
has_content_based_path = True,
visibility = ["PUBLIC"],
)
linkable_symbol_supports_no_std(
name = "linkable_symbol_supports_no_std",
visibility = ["PUBLIC"],
)
rust_internal_tools_toolchain(
name = "internal_tools_toolchain",
visibility = ["PUBLIC"],
)
prelude.export_file(
name = "attrs.bzl",
has_content_based_path = True,
visibility = ["PUBLIC"],
)
# Type checking target for Python tool scripts
prelude.python_library(
name = "scripts-typing",
srcs = [
"buildscript_run.py",
"cd_run.py",
"extract_link_action.py",
"failure_filter_action.py",
"redirect_stdout.py",
"rustc_action.py",
"rustdoc_coverage.py",
"rustdoc_test_with_resources.py",
"shared_libraries_symlink_tree.py",
"symlink_only_dir_entry.py",
"transitive_dependency_symlinks.py",
],
typing = True,
)