blob: 30e6e1c3283240598520b8134d157cb6751224e4 [file] [edit]
# 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("@platforms//host:constraints.bzl", "HOST_CONSTRAINTS")
load("//build/bazel/rules/rust:defs.bzl", "rustc_library")
package(default_visibility = ["//visibility:public"])
rustc_library(
name = "lib",
srcs = ["src/lib.rs"],
crate_name = "timeout",
edition = "2024",
tags = ["assert_no_deps=//third_party/rust_crates/vendor:anyhow"],
target_compatible_with = HOST_CONSTRAINTS,
test_deps = ["//src/lib/fuchsia"],
version = "0.1.0",
with_host_unit_tests = True,
deps = [
"//src/lib/fuchsia-async",
"//third_party/rust_crates/vendor:futures-lite",
"//third_party/rust_crates/vendor:futures-util",
"//third_party/rust_crates/vendor:thiserror",
],
)