blob: b0752f1653051287a13d51ec28dd0f54d870bbc1 [file]
# Copyright 2026 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.
load("//build/bazel/rules/rust:defs.bzl", "rustc_library")
package(default_applicable_licenses = ["//:license"])
rustc_library(
name = "mock-resolver",
testonly = True,
srcs = ["src/lib.rs"],
edition = "2024",
lint_config = "//build/config/rust/lints:clippy_warn_all",
test_deps = [
"//src/lib/fuchsia",
"//third_party/rust_crates/vendor:assert_matches",
],
visibility = [
"//src/sys/pkg/tests/omaha-client:__pkg__",
"//src/sys/pkg/tests/system-update-checker:__pkg__",
"//src/sys/pkg/tests/system-updater:__pkg__",
],
with_unit_tests = True,
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/fidl/fuchsia.pkg:fuchsia.pkg_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-fs",
"//src/lib/fuchsia-sync",
"//third_party/rust_crates/vendor:anyhow",
"//third_party/rust_crates/vendor:futures",
"//third_party/rust_crates/vendor:tempfile",
],
)