| # 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. |
| |
| import("//build/product.gni") |
| import("//build/rust/rustc_library.gni") |
| import("//build/rust/rustc_test.gni") |
| import("//build/testing/test_spec.gni") |
| |
| assert(is_host, "pbms is for use with the host toolchain only") |
| |
| rustc_library("lib") { |
| name = "pbms" |
| edition = "2021" |
| with_unit_tests = true |
| |
| deps = [ |
| "//src/developer/ffx/config:lib", |
| "//src/developer/ffx/lib/errors:lib", |
| "//src/developer/lib/credentials:lib", |
| "//src/lib/assembly/product_bundle", |
| "//src/lib/fuchsia-hyper", |
| "//src/lib/gcs", |
| "//src/lib/structured_ui", |
| "//src/lib/transfer_manifest", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:async-fs", |
| "//third_party/rust_crates:camino", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:hyper", |
| "//third_party/rust_crates:log", |
| "//third_party/rust_crates:serde_json", |
| "//third_party/rust_crates:url", |
| ] |
| |
| test_deps = [ |
| "//src/developer/ffx/lib/pkg:empty-repo-keys", |
| "//src/developer/ffx/lib/pkg:empty-repo-metadata", |
| "//src/lib/fuchsia", |
| "//third_party/rust_crates:tempfile", |
| ] |
| |
| sources = [ |
| "src/gcs.rs", |
| "src/lib.rs", |
| "src/pbms.rs", |
| "src/transfer_manifest.rs", |
| ] |
| } |
| |
| group("pbms") { |
| testonly = true |
| deps = [ |
| ":lib", |
| ":tests", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":lib_test" ] |
| } |