| # Copyright 2019 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/fidl/fidl.gni") |
| import("//build/package.gni") |
| import("//build/rust/rustc_library.gni") |
| import("//build/test/test_package.gni") |
| |
| group("tests") { |
| testonly = true |
| |
| deps = [ |
| ":diagnostic_streams_tests", |
| ] |
| } |
| |
| rustc_library("lib") { |
| name = "diagnostic_streams" |
| with_unit_tests = true |
| edition = "2018" |
| |
| deps = [ |
| ":fuchsia.diagnostics.streaming-rustc", |
| "//garnet/public/rust/fuchsia-zircon", |
| "//garnet/public/rust/fuchsia-zircon/fuchsia-zircon-status", |
| "//third_party/rust_crates:bitfield", |
| "//third_party/rust_crates:nom", |
| ] |
| } |
| |
| unittest_package("diagnostic_streams_tests") { |
| deps = [ |
| ":lib_test", |
| ] |
| |
| tests = [ |
| { |
| name = "diagnostic_streams_lib_test" |
| }, |
| ] |
| } |
| |
| fidl("fuchsia.diagnostics.streaming") { |
| sources = [ |
| "record.fidl", |
| ] |
| } |