blob: caf019d1935a6c79270a0a3b3f83631dc3d651e0 [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 = "2018"
with_unit_tests = true
deps = [
"macro:config-macros",
"//src/connectivity/overnet/lib/hoist",
"//src/developer/ffx/core:lib",
"//src/lib/analytics/rust:lib",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:async-std",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:chrono",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:home",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:libc",
"//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",
]
non_rust_deps = [ "//third_party/boringssl" ]
sources = [
"src/api/mod.rs",
"src/api/query.rs",
"src/api/value.rs",
"src/cache.rs",
"src/constants.rs",
"src/environment.rs",
"src/file_backed_config.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/identity.rs",
"src/mapping/mod.rs",
"src/mapping/runtime.rs",
"src/paths.rs",
"src/persistent_config.rs",
"src/priority_config.rs",
"src/runtime.rs",
"src/sdk.rs",
]
}
}
group("tests") {
testonly = true
deps = [ ":lib_test($host_toolchain)" ]
}