blob: 56c67ab4ed166b85a5f29a53248be043d3ec5410 [file] [log] [blame]
# Copyright 2021 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/rust/rustc_library.gni")
assert(is_host, "timeout is for use with the host toolchain only")
rustc_library("lib") {
name = "timeout"
version = "0.1.0"
edition = "2024"
with_unit_tests = true
sources = [ "src/lib.rs" ]
deps = [
"//src/lib/fuchsia-async",
"//third_party/rust_crates:futures-lite",
"//third_party/rust_crates:futures-util",
"//third_party/rust_crates:thiserror",
]
test_deps = [ "//src/lib//fuchsia" ]
}
group("tests") {
testonly = true
deps = [ ":lib_test" ]
}
group("timeout") {
testonly = true
deps = [
":lib",
":tests",
]
}