blob: d73a5c901e62eee5ab1964b7ffc70af5178af97b [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")
rustc_library("lib") {
name = "ffx_config"
version = "0.1.0"
edition = "2021"
with_unit_tests = true
deps = [
"macro:config-macros",
"//src/connectivity/overnet/lib/ascendd",
"//src/developer/ffx/config/domain:lib",
"//src/developer/ffx/lib/buildid:lib",
"//src/developer/ffx/lib/errors:lib",
"//src/developer/ffx/lib/logging:lib",
"//src/developer/ffx/lib/sdk:lib",
"//src/developer/ffx/lib/version:lib",
"//src/lib/analytics/rust:lib",
"//src/lib/fuchsia-lockfile:lib",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:async-lock",
"//third_party/rust_crates:camino",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:home",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:rand",
"//third_party/rust_crates:regex",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:tempfile",
"//third_party/rust_crates:thiserror",
"//third_party/rust_crates:tracing",
"//third_party/rust_crates:tracing-subscriber",
]
test_deps = [
"//src/developer/ffx/config/domain:test_data",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:assert_matches",
"//third_party/rust_crates:futures",
]
sources = [
"src/aliases.rs",
"src/api/mod.rs",
"src/api/query.rs",
"src/api/value.rs",
"src/cache.rs",
"src/environment.rs",
"src/environment/context.rs",
"src/environment/kind.rs",
"src/environment/test_env.rs",
"src/keys.rs",
"src/lib.rs",
"src/logging.rs",
"src/mapping/build.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/mapping/workspace.rs",
"src/nested.rs",
"src/paths.rs",
"src/runtime.rs",
"src/storage.rs",
]
inputs = [
"test_data/sdk/meta/manifest.json",
"test_data/sdk/tools/x64/a_host_tool-meta.json",
]
_domains_test_data_path =
rebase_path("//src/developer/ffx/config/domain/test_data",
"$root_out_dir/..")
rustenv = [ "DOMAINS_TEST_DATA_PATH=$_domains_test_data_path" ]
}
group("tests") {
testonly = true
deps = [
":lib_test",
"domain:tests",
]
}