| # 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/connectivity/overnet/lib/hoist", |
| "//src/developer/ffx/lib/buildid:lib", |
| "//src/developer/ffx/lib/errors:lib", |
| "//src/developer/ffx/lib/sdk:lib", |
| "//src/developer/ffx/lib/version: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-lock", |
| "//third_party/rust_crates:base64", |
| "//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:nix", |
| "//third_party/rust_crates:rand", |
| "//third_party/rust_crates:regex", |
| "//third_party/rust_crates:ring", |
| "//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", |
| "//third_party/rust_crates:tracing-log", |
| "//third_party/rust_crates:tracing-subscriber", |
| ] |
| |
| test_deps = [ |
| "//src/lib/fuchsia-async", |
| "//third_party/rust_crates:futures", |
| ] |
| |
| inputs = [ |
| "testdata/test1_ed25519", |
| "testdata/test1_authorized_keys", |
| ] |
| |
| sources = [ |
| "src/api/mod.rs", |
| "src/api/query.rs", |
| "src/api/value.rs", |
| "src/cache.rs", |
| "src/environment.rs", |
| "src/lib.rs", |
| "src/lockfile.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/ssh_key.rs", |
| "src/storage.rs", |
| ] |
| } |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":lib_test($host_toolchain)" ] |
| } |