blob: bdc2e236373a38532d39aafb8f40c63f1389833f [file]
# Copyright 2022 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.
group("tests") {
testonly = true
deps = [ ":guest_cli_tests" ]
}
## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ##
#
# ________ _________ ________ ________
# |\ ____\|\___ ___\\ __ \|\ __ \
# \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
# \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
# \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
# ____\_\ \ \ \__\ \ \_______\ \__\
# |\_________\ \|__| \|_______|\|__|
# \|_________|
#
#
# AUTO-GENERATED - DO NOT EDIT
#
# The targets below are auto-generated based on the targets defined in the
# BUILD.bazel file from the same directory. If you made changes to targets in
# Bazel, instead of editing this file manually, run:
#
# > fx bazel2gn
#
# Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and
# rerun bazel2gn.
import("//build/tools/bazel2gn/bazel_migration.gni")
rustc_library("guest_cli") {
sources = [
"src/attach.rs",
"src/balloon.rs",
"src/launch.rs",
"src/lib.rs",
"src/list.rs",
"src/mem.rs",
"src/platform/fuchsia.rs",
"src/platform/host.rs",
"src/platform/mod.rs",
"src/socat.rs",
"src/stop.rs",
"src/vsockperf.rs",
]
edition = "2024"
proc_macro_deps = [ "//third_party/rust_crates:async-trait" ]
visibility = [
":*",
"//src/virtualization/bin/guest:*",
"//src/virtualization/ffx/*",
]
deps = []
deps += [
"//sdk/fidl/fuchsia.virtualization:fuchsia.virtualization_rust",
"//sdk/rust/zx-status",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/virtualization/lib/cli/args:guest_cli_args",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:blocking",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:prettytable-rs",
"//third_party/rust_crates:serde",
]
if (is_fuchsia) {
deps += [ "//src/lib/fuchsia-component" ]
}
if (is_host) {
deps += [
"//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust",
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust",
]
}
}
rustc_test("guest_cli_test") {
sources = [
"src/attach.rs",
"src/balloon.rs",
"src/launch.rs",
"src/lib.rs",
"src/list.rs",
"src/mem.rs",
"src/platform/fuchsia.rs",
"src/platform/host.rs",
"src/platform/mod.rs",
"src/socat.rs",
"src/stop.rs",
"src/vsockperf.rs",
]
edition = "2024"
proc_macro_deps = [ "//third_party/rust_crates:async-trait" ]
deps = []
deps += [
"//sdk/fidl/fuchsia.virtualization:fuchsia.virtualization_rust",
"//sdk/rust/zx-status",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/virtualization/lib/cli/args:guest_cli_args",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:blocking",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:prettytable-rs",
"//third_party/rust_crates:serde",
]
if (is_fuchsia) {
deps += [ "//src/lib/fuchsia-component" ]
}
if (is_host) {
deps += [
"//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust",
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust",
]
}
deps += [
"//sdk/fidl/fuchsia.net:fuchsia.net_rust",
"//src/lib/async-utils",
"//src/lib/fuchsia",
]
}
fuchsia_unittest_package("guest_cli_tests") {
package_name = "guest_cli_tests-gn"
component_name = "guest_cli_tests"
deps = [ ":guest_cli_test" ]
visibility = [
":*",
"//src/virtualization:*",
]
}