| # 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("//src/connectivity/network/unified_binary/network_unified_binary.gni") |
| |
| network_unified_binary("bin") { |
| name = "stack_migration" |
| edition = "2021" |
| with_unit_tests = true |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.metrics:fuchsia.metrics_rust", |
| "//sdk/fidl/fuchsia.net.stackmigrationdeprecated:fuchsia.net.stackmigrationdeprecated_rust", |
| "//src/connectivity/network/metrics:networking_metrics_registry_rustlib", |
| "//src/lib/async-utils", |
| "//src/lib/diagnostics/inspect/runtime/rust", |
| "//src/lib/diagnostics/inspect/rust", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//third_party/cobalt/src/lib/client/rust:cobalt-client", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:serde", |
| "//third_party/rust_crates:serde_json", |
| "//third_party/rust_crates:tracing", |
| ] |
| |
| test_deps = [ |
| "//src/lib/diagnostics/testing/diagnostics-assertions/rust:diagnostics-assertions", |
| "//third_party/rust_crates:test-case", |
| ] |
| |
| sources = [ "src/main.rs" ] |
| } |
| |
| network_unified_binary_regular_and_gub_components("component") { |
| component_name = "stack-migration" |
| manifest = "meta/stack-migration.cml" |
| gub_deps = [ ":bin" ] |
| } |
| |
| fuchsia_unittest_package("stack-migration-unittests") { |
| deps = [ ":bin_test" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":stack-migration-unittests" ] |
| } |