| # Copyright 2020 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") |
| |
| rustc_binary("rust_fidl_microbenchmarks_bin") { |
| name = "rust_fidl_microbenchmarks" |
| edition = "2018" |
| with_unit_tests = true |
| |
| deps = [ |
| "//src/developer/fuchsia-criterion", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| ] |
| } |
| |
| package("rust") { |
| testonly = true |
| |
| deps = [ ":rust_fidl_microbenchmarks_bin" ] |
| |
| binaries = [ |
| { |
| name = "rust_fidl_microbenchmarks" |
| shell = true |
| }, |
| ] |
| } |