blob: 0b8884ffcab610a6180247c4f64baa8fd5b18204 [file] [log] [blame]
# 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.
if (is_host) {
import("//build/rust/rustc_library.gni")
import("//build/rust/rustc_test.gni")
import("//build/testing/test_spec.gni")
rustc_library("lib") {
name = "pbms"
edition = "2021"
with_unit_tests = true
deps = [
"//build/sdk/meta:rust",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/lib/errors:lib",
"//src/developer/ffx/lib/fms",
"//src/lib/fuchsia-async",
"//src/lib/gcs",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:async-fs",
"//third_party/rust_crates:flate2",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:futures-lite",
"//third_party/rust_crates:itertools",
"//third_party/rust_crates:log",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:tar",
"//third_party/rust_crates:tempfile",
"//third_party/rust_crates:url",
"//third_party/rust_crates:walkdir",
]
test_deps = [
"//third_party/rust_crates:serial_test",
"//third_party/rust_crates:tempfile",
]
inputs = [
"test_data/test_core.json",
"test_data/test_images.json",
"test_data/test_product_bundle.json",
]
sources = [
"src/gcs.rs",
"src/lib.rs",
"src/pbms.rs",
"src/repo_info.rs",
]
}
group("pbms") {
testonly = true
deps = [
":lib",
":tests",
]
}
group("tests") {
testonly = true
deps = [ ":lib_test" ]
}
}