blob: dd08af661b21010ce0fafb280e0e65f35ddadb7c [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/components.gni")
import("//build/rust/rustc_library.gni")
rustc_library("mock-installer") {
version = "0.0.1"
edition = "2021"
with_unit_tests = true
deps = [
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-sync",
"//src/sys/pkg/fidl/fuchsia.update.installer:fuchsia.update.installer_rust",
"//src/sys/pkg/lib/fidl-fuchsia-update-installer-ext",
"//third_party/rust_crates:assert_matches",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:pretty_assertions",
]
test_deps = [ "//sdk/fidl/fuchsia.pkg:fuchsia.pkg_rust" ]
sources = [ "src/lib.rs" ]
configs += [ "//build/config/rust/lints:clippy_warn_all" ]
}
group("tests") {
testonly = true
deps = [ ":mock-installer-tests" ]
}
fuchsia_unittest_package("mock-installer-tests") {
deps = [ ":mock-installer_test" ]
}