blob: 595a2f797f10e63bbb586b9f82d0b85545329f36 [file] [log] [blame]
# Copyright 2019 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/fidl/fidl.gni")
import("//build/rust/rustc_library.gni")
rustc_library("event-queue") {
version = "0.0.1"
edition = "2018"
with_unit_tests = true
deps = [
"//src/lib/fuchsia-async",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:thiserror",
]
test_deps = [
":test.pkg.eventqueue-rustc",
"//src/lib/fidl/rust/fidl",
"//third_party/rust_crates:matches",
]
sources = [
"src/barrier.rs",
"src/lib.rs",
]
}
group("tests") {
testonly = true
deps = [ ":event-queue-tests" ]
}
fuchsia_unittest_package("event-queue-tests") {
deps = [ ":event-queue_test" ]
}
fidl("test.pkg.eventqueue") {
testonly = true
sources = [ "test.fidl" ]
}