| # 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/bazel/bazel_test_suite.gni") | |
| bazel_test_suite("bazel_tests") { | |
| target_tests = [ "//src/lib/async-utils:async-utils-tests" ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ | |
| ":async-utils-tests", | |
| ":bazel_tests", | |
| ] | |
| } | |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## | |
| # | |
| # ________ _________ ________ ________ | |
| # |\ ____\|\___ ___\\ __ \|\ __ \ | |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ | |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ | |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| | |
| # ____\_\ \ \ \__\ \ \_______\ \__\ | |
| # |\_________\ \|__| \|_______|\|__| | |
| # \|_________| | |
| # | |
| # | |
| # AUTO-GENERATED - DO NOT EDIT | |
| # | |
| # The targets below are auto-generated based on the targets defined in the | |
| # BUILD.bazel file from the same directory. If you made changes to targets in | |
| # Bazel, instead of editing this file manually, run: | |
| # | |
| # > fx bazel2gn | |
| # | |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and | |
| # rerun bazel2gn. | |
| import("//build/tools/bazel2gn/bazel_migration.gni") | |
| rustc_library("async-utils") { | |
| sources = [ | |
| "src/async_once/mod.rs", | |
| "src/channel.rs", | |
| "src/event.rs", | |
| "src/fold.rs", | |
| "src/futures.rs", | |
| "src/hanging_get/client.rs", | |
| "src/hanging_get/error.rs", | |
| "src/hanging_get/mod.rs", | |
| "src/hanging_get/server.rs", | |
| "src/hanging_get/test_util.rs", | |
| "src/lib.rs", | |
| "src/mutex_ticket.rs", | |
| "src/stream.rs", | |
| "src/stream/future_map.rs", | |
| "src/stream/one_or_many.rs", | |
| "src/stream/short_circuit.rs", | |
| "src/stream/stream_map.rs", | |
| "src/traits.rs", | |
| ] | |
| edition = "2024" | |
| rustflags = [ "-Dunused_results" ] | |
| test_deps = [ | |
| "//src/lib/fuchsia-async", | |
| "//third_party/rust_crates:assert_matches", | |
| "//third_party/rust_crates:futures-lite", | |
| "//third_party/rust_crates:futures-test", | |
| "//third_party/rust_crates:proptest", | |
| "//third_party/rust_crates:test-case", | |
| ] | |
| visibility = [ "*" ] | |
| with_unit_tests = true | |
| deps = [ | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia-sync", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:async-lock", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:once_cell", | |
| "//third_party/rust_crates:pin-project", | |
| "//third_party/rust_crates:slab", | |
| "//third_party/rust_crates:thiserror", | |
| ] | |
| } | |
| fuchsia_unittest_package("async-utils-tests") { | |
| package_name = "async-utils-tests-gn" | |
| component_name = "async-utils-tests" | |
| deps = [ ":async-utils_test" ] | |
| } |