blob: c249efde6ab005db2e4e0e81a2d51a513a07ae7c [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.
import("//build/rust/rustc_library.gni")
if (is_host) {
rustc_library("lib") {
name = "ffx_gce"
edition = "2024"
with_unit_tests = true
deps = [
"//build/sdk/meta:rust",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/lib/discovery:lib",
"//src/developer/ffx/lib/pkg",
"//src/developer/ffx/lib/port_picker:lib",
"//src/developer/ffx/lib/ssh:lib",
"//src/developer/ffx/lib/uefi_disk:lib",
"//src/developer/lib/credentials:lib",
"//src/lib/assembly/product_bundle",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-hyper",
"//src/lib/gcs",
"//third_party/rust_crates:camino",
"//third_party/rust_crates:flate2",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:home",
"//third_party/rust_crates:http-body-util",
"//third_party/rust_crates:hyper",
"//third_party/rust_crates:log",
"//third_party/rust_crates:nix",
"//third_party/rust_crates:rand",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:sha2",
"//third_party/rust_crates:tar",
"//third_party/rust_crates:tempfile",
"//third_party/rust_crates:thiserror",
"//third_party/rust_crates:tokio",
"//third_party/rust_crates:url",
]
test_deps = [ "//src/lib/fuchsia" ]
sources = [
"src/client.rs",
"src/context.rs",
"src/error.rs",
"src/image.rs",
"src/lib.rs",
"src/models.rs",
"src/tunnel.rs",
]
}
group("gce") {
public_deps = [ ":lib" ]
}
group("tests") {
testonly = true
deps = [ ":lib_test" ]
}
}