| # Copyright 2024 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. | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":attribution-processing-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("processing") { | |
| sources = [ | |
| "src/digest.rs", | |
| "src/fkernel_serde.rs", | |
| "src/fplugin_serde.rs", | |
| "src/lib.rs", | |
| "src/macros.rs", | |
| "src/matcher.rs", | |
| "src/name.rs", | |
| "src/summary.rs", | |
| ] | |
| crate_name = "attribution_processing" | |
| edition = "2024" | |
| visibility = [ | |
| ":*", | |
| "//src/developer/ffx/plugins/profile/memory/*", | |
| "//src/performance/memory/attribution/monitor:*", | |
| ] | |
| deps = [] | |
| deps += [ | |
| "//sdk/fidl/fuchsia.kernel:fuchsia.kernel_rust_common", | |
| "//sdk/fidl/fuchsia.memory.attribution.plugin:fuchsia.memory.attribution.plugin_rust_common", | |
| "//sdk/rust/zx-types", | |
| "//src/lib/fidl/rust/fidl", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:bstr", | |
| "//third_party/rust_crates:rustc-hash", | |
| "//third_party/rust_crates:serde", | |
| "//third_party/rust_crates:smallvec", | |
| "//third_party/rust_crates:zerocopy", | |
| "//third_party/rust_crates:zerotrie", | |
| ] | |
| if (is_fuchsia) { | |
| deps += [ "//src/lib/trace/rust:trace" ] | |
| } | |
| } | |
| if (is_fuchsia) { | |
| rustc_test("processing_test") { | |
| sources = [ | |
| "src/digest.rs", | |
| "src/fkernel_serde.rs", | |
| "src/fplugin_serde.rs", | |
| "src/lib.rs", | |
| "src/macros.rs", | |
| "src/matcher.rs", | |
| "src/name.rs", | |
| "src/summary.rs", | |
| ] | |
| edition = "2024" | |
| deps = [] | |
| deps += [ | |
| "//sdk/fidl/fuchsia.kernel:fuchsia.kernel_rust_common", | |
| "//sdk/fidl/fuchsia.memory.attribution.plugin:fuchsia.memory.attribution.plugin_rust_common", | |
| "//sdk/rust/zx-types", | |
| "//src/lib/fidl/rust/fidl", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:bstr", | |
| "//third_party/rust_crates:rustc-hash", | |
| "//third_party/rust_crates:serde", | |
| "//third_party/rust_crates:smallvec", | |
| "//third_party/rust_crates:zerocopy", | |
| "//third_party/rust_crates:zerotrie", | |
| ] | |
| if (is_fuchsia) { | |
| deps += [ "//src/lib/trace/rust:trace" ] | |
| } | |
| deps += [ | |
| "//third_party/rust_crates:pretty_assertions", | |
| "//third_party/rust_crates:rand", | |
| "//third_party/rust_crates:regex-lite", | |
| "//third_party/rust_crates:serde_json", | |
| ] | |
| output_name = "attribution_processing_lib_test" | |
| } | |
| } | |
| fuchsia_unittest_package("attribution-processing-tests") { | |
| package_name = "attribution-processing-tests-gn" | |
| component_name = "attribution-processing-tests" | |
| deps = [ ":processing_test" ] | |
| } |