blob: 6c0a578b5d59243caf1d178ec2721951e76423e9 [file] [log] [blame]
# Copyright 2020 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("//src/developer/ffx/build/ffx_plugin.gni")
ffx_plugin("ffx_update") {
sdk_category = "not-yet-specified"
version = "0.1.0"
edition = "2024"
with_unit_tests = true
args_with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.pkg:fuchsia.pkg_rust",
"//sdk/fidl/fuchsia.pkg.rewrite:fuchsia.pkg.rewrite_rust",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust",
"//sdk/fidl/fuchsia.update:fuchsia.update_rust",
"//sdk/fidl/fuchsia.update.channelcontrol:fuchsia.update.channelcontrol_rust",
"//sdk/rust/zx-status",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/lib/fho:lib",
"//src/developer/ffx/lib/target/connector:lib",
"//src/developer/ffx/lib/target/holders:lib",
"//src/developer/ffx/lib/timeout:lib",
"//src/developer/ffx/lib/writer:lib",
"//src/developer/ffx/plugins/repository/server/start:ffx_repository_server_start",
"//src/developer/ffx/plugins/repository/server/start:ffx_repository_server_start_args",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/sys/lib/fidl-fuchsia-pkg-ext",
"//src/sys/lib/fidl-fuchsia-pkg-rewrite-ext",
"//src/sys/pkg/fidl/fuchsia.update.installer:fuchsia.update.installer_rust",
"//src/sys/pkg/lib/fidl-fuchsia-update-ext",
"//src/sys/pkg/lib/fidl-fuchsia-update-installer-ext",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:camino",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:termion",
"//third_party/rust_crates:url",
]
test_deps = [
"//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust",
"//src/developer/ffx/lib/target:lib",
"//src/developer/ffx/lib/target/behavior:lib",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/sys/pkg/testing/mock-installer",
"//third_party/rust_crates:assert_matches",
]
args_test_deps = [ "//third_party/rust_crates:assert_matches" ]
args_deps = [
"//src/developer/ffx/config:lib",
"//src/developer/ffx/core:lib",
"//third_party/rust_crates:argh",
]
args_sources = [ "src/args.rs" ]
sources = [
"src/lib.rs",
"src/server.rs",
]
}