blob: c3d85a9e70035f99af540f5324899677f084efcf [file] [log] [blame]
# 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")
group("inspect-rs") {
testonly = true
public_deps = [
":pkg",
":tests",
]
}
group("tests") {
testonly = true
public_deps = [ ":inspect_example_rs_tests" ]
}
rustc_binary("bin") {
name = "inspect_example_rs"
edition = "2018"
with_unit_tests = true
deps = [
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/inspect/rust/fuchsia-inspect",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:itertools",
"//third_party/rust_crates:thiserror",
]
}
package("pkg") {
package_name = "inspect-rs"
deps = [ ":bin" ]
binary = "inspect_example_rs"
meta = [
{
path = rebase_path("meta/inspect-rs.cmx")
dest = "inspect-rs.cmx"
},
]
}
test_package("inspect_example_rs_tests") {
deps = [ ":bin_test" ]
tests = [
{
name = "inspect_example_rs_bin_test"
},
]
}