blob: f63903fd38f396103d226d68449fc5f33897bbfc [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/rust/rustc_binary.gni")
import("//build/test/test_package.gni")
package("rust_inspect_benchmarks") {
testonly = true
binaries = [
{
name = "rust_inspect_benchmarks"
},
]
resources = [
{
path = rebase_path("benchmarks.tspec")
dest = "benchmarks.tspec"
},
{
path = rebase_path("reader_benchmarks.tspec")
dest = "reader_benchmarks.tspec"
},
]
meta = [
{
path = rebase_path("meta/rust_inspect_benchmarks.cmx")
dest = "rust_inspect_benchmarks.cmx"
},
]
public_deps = [ ":bin" ]
}
rustc_binary("bin") {
name = "rust_inspect_benchmarks"
edition = "2018"
with_unit_tests = true
deps = [
"//src/lib/fuchsia-async",
"//src/lib/inspect/rust/fuchsia-inspect",
"//src/lib/mapped-vmo",
"//src/lib/trace/rust:trace",
"//src/lib/trace/rust:trace-provider",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:num",
"//third_party/rust_crates:num-traits",
"//third_party/rust_crates:parking_lot",
"//third_party/rust_crates:paste",
"//third_party/rust_crates:thiserror",
]
}