blob: 2a49da0d7c0bb502f429ac3b125a2b8c6f5fcca6 [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/rules/rust:rustc_binary.bzl", "rustc_binary")
load("//build/bazel/rules/rust:rustc_test.bzl", "rustc_test")
package(default_applicable_licenses = ["//:license"])
rustc_binary(
name = "reporter_bin",
testonly = True,
srcs = ["reporter.rs"],
crate_name = "reporter",
crate_root = "reporter.rs",
edition = "2024",
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust",
"//src/lib/diagnostics/reader/rust",
"//src/lib/diagnostics/testing/diagnostics-assertions/rust:diagnostics-assertions",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-fs",
],
)
rustc_test(
name = "bin",
srcs = ["integration_test.rs"],
crate_name = "diagnostics_integration_test",
crate_root = "integration_test.rs",
edition = "2024",
deps = [
"//sdk/fidl/fuchsia.component:fuchsia.component_rust",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component-test",
"//src/sys/lib/component-events",
],
)