| # 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/package.gni") |
| import("//build/rust/rustc_binary.gni") |
| import("//build/test/test_package.gni") |
| import("//build/testing/environments.gni") |
| |
| rustc_binary("bin") { |
| name = "iquery" |
| with_unit_tests = true |
| edition = "2018" |
| |
| deps = [ |
| "//garnet/lib/rust/io_util", |
| "//garnet/public/lib/fidl/rust/fidl", |
| "//garnet/public/rust/fdio", |
| "//garnet/public/rust/fuchsia-async", |
| "//garnet/public/rust/fuchsia-syslog", |
| "//src/diagnostics/lib/inspect-fidl-load", |
| "//src/diagnostics/lib/inspect-formatter", |
| "//src/lib/inspect/rust/fuchsia-inspect", |
| "//third_party/rust_crates:failure", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:nom", |
| "//third_party/rust_crates:num-traits", |
| "//third_party/rust_crates:serde", |
| "//third_party/rust_crates:serde_json", |
| "//third_party/rust_crates:tempfile", |
| "//zircon/system/fidl/fuchsia-inspect:fuchsia-inspect-rustc", |
| "//zircon/system/fidl/fuchsia-inspect-deprecated:fuchsia-inspect-deprecated-rustc", |
| "//zircon/system/fidl/fuchsia-io:fuchsia-io-rustc", |
| ] |
| } |
| |
| package("iquery") { |
| deps = [ |
| ":bin", |
| ] |
| |
| binaries = [ |
| { |
| name = "iquery" |
| shell = true |
| }, |
| ] |
| } |
| |
| test_package("iquery_tests") { |
| deps = [ |
| ":bin_test", |
| ] |
| |
| tests = [ |
| { |
| name = "iquery_bin_test" |
| }, |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| |
| deps = [ |
| ":iquery_tests", |
| "test:iquery_golden_tests", |
| ] |
| } |