blob: 6fec4dc6b41c4272c6f14d2670f403e16a79ef78 [file] [log] [blame] [edit]
# 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.
import("//build/components/fuchsia_unittest_package.gni")
import("//build/rust/rustc_library.gni")
rustc_library("processing") {
name = "attribution_processing"
edition = "2021"
version = "0.1.0"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.kernel:fuchsia.kernel_rust",
"//sdk/fidl/fuchsia.memory.attribution.plugin:fuchsia.memory.attribution.plugin_rust",
"//sdk/rust/zx-status",
"//sdk/rust/zx-types",
"//src/lib/fidl/rust/fidl",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:bstr",
"//third_party/rust_crates:regex",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:zerocopy",
]
test_deps = [
"//third_party/rust_crates:pretty_assertions",
"//third_party/rust_crates:rand",
"//third_party/rust_crates:serde_json",
]
sources = [
"src/digest.rs",
"src/fkernel_serde.rs",
"src/fplugin_serde.rs",
"src/lib.rs",
"src/name.rs",
"src/summary.rs",
]
}
fuchsia_unittest_package("tests") {
package_name = "attribution-processing-tests"
deps = [ ":processing_test" ]
}