| # 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 = "2021" | |
| with_unit_tests = true | |
| deps = [ | |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust", | |
| "//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia-component", | |
| "//src/lib/zircon/rust:fuchsia-zircon", | |
| "//third_party/rust_crates:anyhow", | |
| "//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", | |
| "//src/lib/fuchsia-async", | |
| ] | |
| 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" ] | |
| } |