blob: af122daf6235fea6205b7bc82f8d79cc9e25a0f9 [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:assert_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" ]
}