blob: 57a2f812b4f9121865f1dfb4777aba6067333ec8 [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("//build/rust/rustc_library.gni")
if (is_host) {
rustc_library("lib") {
name = "ffx_config"
version = "0.1.0"
edition = "2021"
with_unit_tests = true
deps = [
"macro:config-macros",
"//src/developer/ffx/lib/errors:lib",
"//src/lib/analytics/rust:lib",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:async-lock",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:home",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:log",
"//third_party/rust_crates:regex",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:simplelog",
"//third_party/rust_crates:tempfile",
"//third_party/rust_crates:thiserror",
]
test_deps = [ "//src/lib/fuchsia-async" ]
sources = [
"src/api/mod.rs",
"src/api/query.rs",
"src/api/value.rs",
"src/cache.rs",
"src/environment.rs",
"src/lib.rs",
"src/logging.rs",
"src/mapping/cache.rs",
"src/mapping/config.rs",
"src/mapping/data.rs",
"src/mapping/env_var.rs",
"src/mapping/file_check.rs",
"src/mapping/filter.rs",
"src/mapping/flatten.rs",
"src/mapping/home.rs",
"src/mapping/mod.rs",
"src/mapping/runtime.rs",
"src/nested.rs",
"src/paths.rs",
"src/runtime.rs",
"src/sdk.rs",
"src/storage.rs",
]
}
}
group("tests") {
testonly = true
deps = [ ":lib_test($host_toolchain)" ]
}