| # 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. |
| |
| # [START imports] |
| import("//build/rust/rustc_binary.gni") |
| |
| # [END imports] |
| |
| # [START test] |
| rustc_binary("fidl_crates_bin") { |
| edition = "2018" |
| deps = [ "//examples/fidl/fuchsia.examples:fuchsia.examples-rustc" ] |
| with_unit_tests = true |
| |
| sources = [ "src/main.rs" ] |
| } |
| |
| # [END test] |
| |
| # [START group] |
| group("fidl_crates") { |
| testonly = true |
| deps = [ |
| ":fidl_crates_bin($host_toolchain)", |
| ":fidl_crates_bin_test($host_toolchain)", |
| ] |
| } |
| # [END group] |