blob: 4dc6e415210f06b51e06d19ed300e8e018f8ec84 [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:rustc_library.bzl", "rustc_library")
load("//build/bazel/rules/rust:rustc_test.bzl", "rustc_test")
load("//build/bazel/rules/testing:fx_unittest_package.bzl", "fx_unittest_package")
package(default_applicable_licenses = ["//:license"])
rustc_library(
name = "push-source",
srcs = ["src/lib.rs"],
edition = "2024",
proc_macro_deps = [
"//third_party/rust_crates/vendor:async-trait",
],
visibility = [
"//src/sys/time/httpsdate_time_source:__pkg__",
"//src/sys/time/testing:__pkg__",
],
deps = [
"//sdk/fidl/fuchsia.time.external:fuchsia.time.external_rust",
"//sdk/rust/zx",
"//src/lib/fidl/rust/fidl",
"//src/lib/watch_handler",
"//third_party/rust_crates/vendor:anyhow",
"//third_party/rust_crates/vendor:futures",
"//third_party/rust_crates/vendor:log",
],
)
rustc_test(
name = "push-source_test",
crate = ":push-source",
edition = "2024",
deps = [
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//third_party/rust_crates/vendor:assert_matches",
],
)
fx_unittest_package(
name = "push-source-tests",
unit_tests = [":push-source_test"],
visibility = ["//src/sys:__pkg__"],
)