| # 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/components.gni") |
| import("//build/rust/rustc_library.gni") |
| |
| rustc_library("mock-resolver") { |
| version = "0.1.0" |
| edition = "2021" |
| with_unit_tests = true |
| testonly = true |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust", |
| "//sdk/fidl/fuchsia.pkg:fuchsia.pkg_rust", |
| "//src/lib/fdio/rust:fdio", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-sync", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:tempfile", |
| ] |
| |
| test_deps = [ |
| "//src/lib/fuchsia-fs", |
| "//third_party/rust_crates:assert_matches", |
| ] |
| |
| sources = [ "src/lib.rs" ] |
| configs += [ "//build/config/rust/lints:clippy_warn_all" ] |
| } |
| |
| fuchsia_unittest_package("mock-resolver-tests") { |
| deps = [ |
| ":mock-resolver_test", |
| "//src/sys/test_runners:tmp_storage", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| public_deps = [ ":mock-resolver-tests" ] |
| } |