| # 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("@io_bazel_rules_go//go:def.bzl", "go_library") |
| load("@platforms//host:constraints.bzl", "HOST_CONSTRAINTS") |
| load("//build/bazel/rules/host:defs.bzl", "go_binary_host_tool") |
| |
| go_library( |
| name = "rust_test_parser_lib", |
| srcs = [ |
| "rusttest.go", |
| ], |
| importpath = "go.fuchsia.dev/fuchsia/tools/rust_test_parser", |
| target_compatible_with = HOST_CONSTRAINTS, |
| visibility = ["//visibility:public"], |
| deps = [ |
| "//tools/testing/runtests", |
| ], |
| ) |
| |
| go_library( |
| name = "main", |
| srcs = [ |
| "cmd/main.go", |
| ], |
| importpath = "go.fuchsia.dev/fuchsia/tools/rust_test_parser/cmd", |
| target_compatible_with = HOST_CONSTRAINTS, |
| visibility = ["//visibility:private"], |
| deps = [ |
| ":rust_test_parser_lib", |
| "//tools/lib/jsonutil", |
| "//tools/lib/subprocess", |
| "//tools/testing/runtests", |
| "//tools/testing/testrunner:constants", |
| ], |
| ) |
| |
| # @bazel2gn:skip |
| go_binary_host_tool( |
| name = "rust_test_parser", |
| embed = [":main"], |
| target_compatible_with = HOST_CONSTRAINTS, |
| visibility = ["//visibility:public"], |
| ) |