blob: d5bfa866f5c472c70c11f65e1ad9e79f8147860e [file]
# Copyright 2026 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
load("//build/bazel/platforms:constraints.bzl", "HOST_OS_CONSTRAINTS")
load("//build/bazel/rules/host_tests:host_rustc_test.bzl", "host_rustc_test")
load("//build/bazel/rules/rust:rustc_library.bzl", "rustc_library")
package(default_applicable_licenses = ["//:license"])
rustc_library(
name = "libdoc",
srcs = [
"src/lexer.rs",
"src/lib.rs",
"src/parser.rs",
"src/source.rs",
"src/utils.rs",
],
edition = "2024",
rustc_flags = ["-Adead_code"],
target_compatible_with = HOST_OS_CONSTRAINTS,
)
host_rustc_test(
name = "libdoc_test",
crate = ":libdoc",
edition = "2024",
)