blob: 4229219218925615584c1e4ff554de68aacf36d9 [file]
# Copyright 2021 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")
assert(is_host, "doctor_utils is for use with the host toolchain only")
rustc_library("lib") {
name = "doctor_utils"
version = "0.1.0"
edition = "2024"
with_unit_tests = true
visibility = [
":*",
"//src/developer/ffx/plugins/doctor:*",
"//vendor/google/tools/gdoctor:*",
]
sources = [
"src/daemon_manager.rs",
"src/lib.rs",
"src/recorder.rs",
]
deps = [
"//src/connectivity/overnet/lib/core",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/daemon:lib",
"//src/developer/ffx/fidl:fuchsia.developer.ffx_rust",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:chrono",
"//third_party/rust_crates:log",
"//third_party/rust_crates:schemars",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:termion",
"//third_party/rust_crates:which",
"//third_party/rust_crates:zip",
]
test_deps = [
"//src/lib/fuchsia",
"//third_party/rust_crates:tempfile",
]
}
group("tests") {
testonly = true
deps = [ ":lib_test" ]
}
group("doctor_utils") {
testonly = true
deps = [
":lib",
":tests",
]
}