| # 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_library.gni") |
| import("//build/rust/rustc_test.gni") |
| import("//src/sys/build/components.gni") |
| |
| rustc_library("moniker") { |
| with_unit_tests = true |
| edition = "2018" |
| |
| visibility = [ |
| "//src/sys/component_manager/*", |
| "//src/sys/lib/moniker/*", |
| "//tools/lib/cm_fidl_analyzer/*", |
| ] |
| |
| deps = [ |
| "//third_party/rust_crates:log", |
| "//third_party/rust_crates:thiserror", |
| ] |
| |
| test_deps = [ "//third_party/rust_crates:anyhow" ] |
| |
| sources = [ "src/lib.rs" ] |
| } |
| |
| fuchsia_unittest_package("moniker-tests") { |
| executable_path = "bin/moniker_lib_test" |
| deps = [ ":moniker_test" ] |
| } |