blob: c91e3d9a2c5339f66b52c84d447647382a22ba55 [file] [log] [blame]
# Copyright 2022 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/components.gni")
import("//build/rust/rustc_library.gni")
import("//build/rust/rustc_test.gni")
rustc_library("cm_moniker") {
with_unit_tests = true
edition = "2021"
# Moniker types defined in this library are restricted to component_manager.
# Please use Moniker types included in //src/sys/lib/moniker for development.
visibility = [
"//src/sys/component_manager/*",
"//src/sys/lib/cm_moniker/*",
# TODO(https://fxbug.dev/42174305): Have StorageAdminRequest pass a non-InstancedMoniker.
"//src/sys/lib/routing/*",
"//src/sys/test_manager/*",
"//tools/lib/cm_fidl_analyzer/*",
]
deps = [
"//src/sys/lib/cm_types",
"//src/sys/lib/moniker",
]
sources = [
"src/instanced_child_name.rs",
"src/instanced_extended_moniker.rs",
"src/instanced_moniker.rs",
"src/lib.rs",
]
}
fuchsia_unittest_package("cm-moniker-tests") {
deps = [ ":cm_moniker_test" ]
}
group("tests") {
testonly = true
deps = [ ":cm-moniker-tests" ]
}