| # Copyright 2023 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. |
| import("//build/components.gni") |
| import("//build/rust/rustc_binary.gni") |
| |
| rustc_binary("bin") { |
| testonly = true |
| edition = "2024" |
| name = "diagnostics_detect_realm_factory_bin" |
| sources = [ |
| "src/main.rs", |
| "src/realm_events.rs", |
| "src/realm_factory.rs", |
| "src/realm_options.rs", |
| ] |
| deps = [ |
| "fidl/test.detect.factory:fidl_rust", |
| "//sdk/fidl/fuchsia.diagnostics:fuchsia.diagnostics_rust", |
| "//sdk/fidl/fuchsia.feedback:fuchsia.feedback_rust", |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust", |
| "//sdk/rust/zx", |
| "//src/lib/diagnostics/testing/fake-archive-accessor", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fidl_server", |
| "//src/lib/fuchsia", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/fuchsia-component-test", |
| "//src/sys/lib/component-events", |
| "//src/testing/realm_proxy", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:async-trait", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:log", |
| "//third_party/rust_crates:thiserror", |
| ] |
| configs += [ "//build/config/rust/lints:clippy_warn_all" ] |
| } |
| |
| fuchsia_component("component") { |
| testonly = true |
| component_name = "realm_factory" |
| manifest = "meta/realm_factory.cml" |
| deps = [ ":bin" ] |
| } |
| |
| fuchsia_package("pkg") { |
| testonly = true |
| package_name = "diagnostics_detect_realm_factory" |
| deps = [ ":component" ] |
| subpackages = [ |
| "//src/lib/fake-clock/svc:pkg", |
| "../target:pkg", |
| ] |
| } |