blob: 51a7b2655c1defc67d43ead17ffbf7908d635b8a [file] [log] [blame]
# Copyright 2025 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/rust/rustc_library.gni")
# This library is intended to be runnable both on the host and device.
rustc_library("trace_task") {
version = "0.1.0"
edition = "2021"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.tracing.controller:fuchsia.tracing.controller_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:async-channel",
"//third_party/rust_crates:async-lock",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:thiserror",
]
test_deps = [
"//src/lib/fuchsia",
"//third_party/rust_crates:tempfile",
]
if (is_host) {
test_deps += [ "//third_party/rust_crates:async-fs" ]
}
sources = [
"src/lib.rs",
"src/trace_task.rs",
"src/triggers.rs",
]
}
group("tests") {
testonly = true
deps = [ ":trace_task_test" ]
}