Radix/third_party/zls/BUILD.bazel

43 lines
1.1 KiB
Python
Raw Permalink Normal View History

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@rules_zig//zig:defs.bzl", "zig_binary")
load(":resolved_toolchain.bzl", "resolved_toolchain")
# This is the ZLS binary toolchain type. Zig rule authors should use this
# target in the `toolchains` parameter in order to access the appropriate ZLS
# binary for the current execution platform.
toolchain_type(
name = "toolchain_type",
visibility = ["//visibility:public"],
)
resolved_toolchain(
name = "resolved_toolchain",
# Marked manual so that `bazel test //...` passes
# even if no toolchain is registered.
tags = ["manual"],
visibility = ["//visibility:public"],
)
exports_files(
[
"cat.zig",
"zls_build_runner.zig",
"zls_runner.zig",
"zls.completion.tpl",
],
)
# Execute `bazel run //util:update_filegroups` to update this target.
filegroup(
name = "all_files",
srcs = [
":BUILD.bazel",
":zls_build_runner.zig",
":zls.completion.tpl",
":zls_completion.bzl",
":zls_runner.zig",
":zls_toolchain.bzl",
],
2025-11-10 09:44:11 +00:00
visibility = ["@rules_zig//zig:__pkg__"],
)