blob: 1d6c12ad97530cedf07edc2bb9e6425526ea72ba [file] [log] [blame]
# Copyright 2020 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/rust/rustc_library.gni")
rustc_library("component-events") {
name = "component_events"
edition = "2018"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io-rustc",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:paste",
"//third_party/rust_crates:regex",
"//third_party/rust_crates:thiserror",
]
test_deps = [ "//src/lib/fuchsia" ]
sources = [
"src/descriptor.rs",
"src/events.rs",
"src/lib.rs",
"src/log.rs",
"src/matcher.rs",
"src/sequence.rs",
]
}
fuchsia_unittest_package("component-events-unittests") {
deps = [ ":component-events_test" ]
}
group("tests") {
testonly = true
deps = [ ":component-events-unittests" ]
}