blob: bbd8f8578962d74cbecfb138488cd7d8c8863ceb [file]
# Copyright 2026 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.
load("@fuchsia_rules_common//build_flags:build_flags.bzl", "build_flags")
load("//build/bazel/rbe:rbe.bzl", "RBE_USE_LARGE_WORKER")
load("//build/bazel/rules/components:cml_shard.bzl", "cml_shard")
load(
"//build/bazel/rules/components:fx_component.bzl",
"fx_compiled_manifest",
"fx_component",
"fx_component_manifest",
)
load(
"//build/bazel/rules/components:structured_config.bzl",
"fuchsia_structured_config_rust_lib",
)
load("//build/bazel/rules/packages:fx_packaged_binary.bzl", "fx_packaged_binary")
load("//build/bazel/rules/rust:rustc_binary.bzl", "rustc_binary")
load("//build/bazel/rules/rust:rustc_test.bzl", "rustc_test")
load("//build/component:component_id_index.bzl", "component_id_index_config")
load("//build/component:config.bzl", "component_config")
load("//tools/fidl/measure-tape:measure_tape.bzl", "measure_tape")
package(default_applicable_licenses = ["//:license"])
exports_files(
[
"meta/component_manager.cml",
"meta/component_manager_root_trace.root_shard.cml",
"meta/passthrough_diagnostics.shard.cml",
],
visibility = [
"//bundles/assembly:__subpackages__",
"//src/lib/fuchsia-component-test/tests:__pkg__",
"//src/sys/component_manager/tests:__subpackages__",
],
)
cml_shard(
name = "meta/component-framework-tests.shard",
includes = [
"//sdk/lib/trace:offer.shard",
"//src/sys/testing:meta/test-memfs.shard",
],
shard = "meta/component-framework-tests.shard.cml",
visibility = ["//:__subpackages__"],
)
# "opt-level=z" saves 400 KiB compared to "s" on component framework binary
# On arm64 release build, component_manager size goes from 4216440 to 3884664
# bytes.
# LINT.IfChange(optimize-for-size)
# @bazel2gn:skip
build_flags(
name = "optimize-for-size",
rustflags = [
"-Copt-level=z",
"-Cpanic=abort",
],
)
# LINT.ThenChange(BUILD.gn:optimize-for-size)
_COMPONENT_MANAGER_SRCS = [
"src/bootfs.rs",
"src/builtin/boot_controller.rs",
"src/builtin/builtin_resolver.rs",
"src/builtin/builtin_runner.rs",
"src/builtin/crash_introspect.rs",
"src/builtin/dispatcher.rs",
"src/builtin/fuchsia_boot_resolver.rs",
"src/builtin/log.rs",
"src/builtin/mod.rs",
"src/builtin/ota_health_verification.rs",
"src/builtin/realm_builder.rs",
"src/builtin/runner.rs",
"src/builtin/svc_stash_provider.rs",
"src/builtin/system_controller.rs",
"src/builtin/time.rs",
"src/builtin_environment.rs",
"src/capability.rs",
"src/framework/binder.rs",
"src/framework/capabilities.rs",
"src/framework/capability_store.rs",
"src/framework/component_sandbox_retriever.rs",
"src/framework/config_override.rs",
"src/framework/controller.rs",
"src/framework/introspector.rs",
"src/framework/lifecycle_controller.rs",
"src/framework/mod.rs",
"src/framework/namespace.rs",
"src/framework/pkg_dir.rs",
"src/framework/realm.rs",
"src/framework/realm_query.rs",
"src/framework/route_validator.rs",
"src/main.rs",
"src/model/actions/coordinator.rs",
"src/model/actions/destroy.rs",
"src/model/actions/mod.rs",
"src/model/actions/resolve.rs",
"src/model/actions/set.rs",
"src/model/actions/shutdown.rs",
"src/model/actions/start.rs",
"src/model/actions/stop.rs",
"src/model/actions/unresolve.rs",
"src/model/component/instance.rs",
"src/model/component/manager.rs",
"src/model/component/mod.rs",
"src/model/context.rs",
"src/model/escrow.rs",
"src/model/event_logger.rs",
"src/model/events/hook_observer.rs",
"src/model/events/mod.rs",
"src/model/events/use_router.rs",
"src/model/logger.rs",
"src/model/mod.rs",
"src/model/model.rs",
"src/model/namespace.rs",
"src/model/program/component_controller.rs",
"src/model/program/mod.rs",
"src/model/resolver.rs",
"src/model/routing/aggregate_router.rs",
"src/model/routing/mod.rs",
"src/model/routing/service.rs",
"src/model/start.rs",
"src/model/storage/admin_protocol.rs",
"src/model/storage/mod.rs",
"src/model/testing/echo_service.rs",
"src/model/testing/mocks.rs",
"src/model/testing/mod.rs",
"src/model/testing/out_dir.rs",
"src/model/testing/routing_test_helpers.rs",
"src/model/testing/test_helpers.rs",
"src/model/testing/test_hook.rs",
"src/model/tests/availability.rs",
"src/model/tests/config.rs",
"src/model/tests/diagnostics.rs",
"src/model/tests/dictionary.rs",
"src/model/tests/directory.rs",
"src/model/tests/lifecycle.rs",
"src/model/tests/mod.rs",
"src/model/tests/policy.rs",
"src/model/tests/rights.rs",
"src/model/tests/routing.rs",
"src/model/tests/storage.rs",
"src/model/tests/storage_admin.rs",
"src/model/token.rs",
"src/root_input_builder.rs",
"src/root_stop_notifier.rs",
"src/runner.rs",
"src/sandbox_util.rs",
"src/startup.rs",
]
# @bazel2gn:transformer=deps
_COMPONENT_MANAGER_DEPS = [
":dispatcher_config",
":measure_tape_for_events",
":measure_tape_for_instance",
"//sdk/fidl/fuchsia.boot:fuchsia.boot_rust",
"//sdk/fidl/fuchsia.component:fuchsia.component_rust",
"//sdk/fidl/fuchsia.component.decl:fuchsia.component.decl_rust",
"//sdk/fidl/fuchsia.component.internal:fuchsia.component.internal_rust",
"//sdk/fidl/fuchsia.component.resolution:fuchsia.component.resolution_rust",
"//sdk/fidl/fuchsia.component.runner:fuchsia.component.runner_rust",
"//sdk/fidl/fuchsia.component.runtime:fuchsia.component.runtime_rust",
"//sdk/fidl/fuchsia.component.sandbox:fuchsia.component.sandbox_rust",
"//sdk/fidl/fuchsia.data:fuchsia.data_rust",
"//sdk/fidl/fuchsia.hardware.power.statecontrol:fuchsia.hardware.power.statecontrol_rust",
"//sdk/fidl/fuchsia.inspect:fuchsia.inspect_rust",
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/fidl/fuchsia.kernel:fuchsia.kernel_rust",
"//sdk/fidl/fuchsia.logger:fuchsia.logger_rust",
"//sdk/fidl/fuchsia.mem:fuchsia.mem_rust",
"//sdk/fidl/fuchsia.memory.attribution:fuchsia.memory.attribution_rust",
"//sdk/fidl/fuchsia.pkg:fuchsia.pkg_rust",
"//sdk/fidl/fuchsia.process:fuchsia.process_rust",
"//sdk/fidl/fuchsia.process.lifecycle:fuchsia.process.lifecycle_rust",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust",
"//sdk/fidl/fuchsia.time:fuchsia.time_rust",
"//sdk/rust/zx",
"//sdk/rust/zx-status",
"//src/devices/bin/devfs:lib",
"//src/lib/async-utils",
"//src/lib/diagnostics/inspect/runtime/rust", # @bazel2gn:path_overwrite://src/lib/diagnostics/inspect/runtime/rust:unchecked_includes
"//src/lib/diagnostics/inspect/rust:fuchsia-inspect", # @bazel2gn:path_overwrite://src/lib/diagnostics/inspect/rust
"//src/lib/diagnostics/log/rust",
"//src/lib/directed_graph",
"//src/lib/error/clonable_error",
"//src/lib/fdio/rust:fdio",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-fs",
"//src/lib/fuchsia-runtime",
"//src/lib/fuchsia-sync",
"//src/lib/fuchsia-url",
"//src/lib/trace/rust:trace",
"//src/lib/versioning/version-history/rust",
"//src/lib/versioning/version-history/rust/data",
"//src/performance/memory/scudo:rust",
"//src/power/shutdown-shim:lib",
"//src/storage/lib/vfs/rust:vfs",
"//src/sys/component_manager/lib/builtins",
"//src/sys/component_manager/lib/diagnostics",
"//src/sys/component_manager/lib/errors",
"//src/sys/component_manager/lib/hooks",
"//src/sys/component_manager/lib/logger",
"//src/sys/component_manager/lib/router_error",
"//src/sys/component_manager/lib/serve_processargs",
"//src/sys/component_manager/lib/util",
"//src/sys/lib/capability_source",
"//src/sys/lib/cm_config",
"//src/sys/lib/cm_fidl_validator",
"//src/sys/lib/cm_graph",
"//src/sys/lib/cm_rust",
"//src/sys/lib/cm_types",
"//src/sys/lib/component_id_index",
"//src/sys/lib/config_encoder",
"//src/sys/lib/elf_runner",
"//src/sys/lib/fidl-fuchsia-component-abi-ext",
"//src/sys/lib/fuchsia-bootfs",
"//src/sys/lib/fuchsia-zbi",
"//src/sys/lib/mem_util",
"//src/sys/lib/moniker",
"//src/sys/lib/namespace",
"//src/sys/lib/routing",
"//src/sys/lib/runner",
"//src/sys/lib/runtime_capabilities",
"//src/sys/pkg/fidl/fuchsia.update.verify:fuchsia.update.verify_rust",
"//src/sys/pkg/lib/context-authenticator",
"//src/sys/pkg/lib/fuchsia-pkg",
"//src/sys/pkg/lib/package-directory",
"//src/sys/pkg/lib/system-image",
"//src/sys/service-broker:lib",
"//third_party/rust_crates/vendor:anyhow",
"//third_party/rust_crates/vendor:flyweights",
"//third_party/rust_crates/vendor:futures",
"//third_party/rust_crates/vendor:itertools",
"//third_party/rust_crates/vendor:log",
"//third_party/rust_crates/vendor:num-traits",
"//third_party/rust_crates/vendor:rand",
"//third_party/rust_crates/vendor:thiserror",
]
# @bazel2gn:transformer=deps
_COMPONENT_MANAGER_PROC_MACRO_DEPS = [
"//src/lib/include_bytes_from_working_dir",
"//third_party/rust_crates/vendor:async-trait",
"//third_party/rust_crates/vendor:derivative",
]
# @bazel2gn:transformer=deps
_COMPONENT_MANAGER_TEST_DEPS = [
"//examples/components/routing/fidl:echo_rust",
"//src/lib/diagnostics/testing/diagnostics-assertions/rust:diagnostics-assertions",
"//src/lib/fuchsia",
"//src/sys/lib/cm_rust/testing",
"//src/sys/lib/routing/testing:routing_test_helpers",
"//third_party/rust_crates/vendor:assert_matches",
"//third_party/rust_crates/vendor:camino",
"//third_party/rust_crates/vendor:maplit",
"//third_party/rust_crates/vendor:tempfile",
"//third_party/rust_crates/vendor:test-case",
]
# This is a low-level action that compiles `elf_runner.cml`
# without also adding the compiled `.cm` as a `resource`, which would
# otherwise get funneled into bootfs.
fx_compiled_manifest(
name = "elf_runner_cm",
component_name = "elf_runner",
manifest = "meta/elf_runner.cml",
)
fx_compiled_manifest(
name = "dispatcher_cm",
component_name = "dispatcher",
manifest = "meta/dispatcher.cml",
restricted_features = ["dynamic_dictionaries"],
visibility = ["//tools/cmc/build/restricted_features:__pkg__"],
)
fuchsia_structured_config_rust_lib(
name = "dispatcher_config",
cm_label = ":dispatcher_cm",
)
rustc_binary(
name = "bin",
srcs = _COMPONENT_MANAGER_SRCS,
build_flags = [
"//build/config/rust:bootfs",
":optimize-for-size",
],
compile_data = [
":dispatcher_cm", # @bazel2gn:path_overwrite:${dispatcher_cm}
":elf_runner_cm", # @bazel2gn:path_overwrite:${elf_runner_cm}
],
crate_name = "component_manager",
data = [
":dispatcher_cm", # @bazel2gn:path_overwrite::dispatcher_cm($default_toolchain)
":elf_runner_cm", # @bazel2gn:path_overwrite::elf_runner_cm($default_toolchain)
],
edition = "2024",
# As this is a large binary that uses many resources to compile (and takes
# minutes when LTO is enabled, shift it to the large RBE worker pool)
exec_properties = RBE_USE_LARGE_WORKER,
proc_macro_deps = _COMPONENT_MANAGER_PROC_MACRO_DEPS,
rustc_env = {
"DISPATCHER_CM_PATH": "$(location :dispatcher_cm)", # @bazel2gn:value_overwrite:${dispatcher_cm_path}
"ELF_RUNNER_CM_PATH": "$(location :elf_runner_cm)", # @bazel2gn:value_overwrite:${elf_runner_cm_path}
},
tags = [
# For tracing support, :bin_with_tracing is required
"assert_no_deps=//src/lib/trace/rust:trace-provider",
# regex crate is large
"assert_no_deps=//third_party/rust_crates/vendor:regex",
# component_manager should not depend on json5
"assert_no_deps=//third_party/rust_crates/vendor:serde_json5", # @bazel2gn:path_overwrite://third_party/rust_crates:serde_json5($current_toolchain)
"exclude_toolchain_tags=heapdump",
],
deps = _COMPONENT_MANAGER_DEPS,
)
rustc_test(
name = "bin_test",
build_flags = [
"//build/config/rust:bootfs",
":optimize-for-size",
],
crate = ":bin",
crate_name = "component_manager_bin_test",
data = [
":dispatcher_cm", # @bazel2gn:path_overwrite::dispatcher_cm($default_toolchain)
":elf_runner_cm", # @bazel2gn:path_overwrite::elf_runner_cm($default_toolchain)
"//src/sys/lib/fuchsia-bootfs:testdata_bootfs",
],
edition = "2024",
exec_properties = RBE_USE_LARGE_WORKER,
proc_macro_deps = [
"//third_party/rust_crates/vendor:paste",
],
tags = [
"exclude_toolchain_tags=heapdump",
],
deps = _COMPONENT_MANAGER_TEST_DEPS + [
"//src/lib/test_util",
"//src/sys/pkg/lib/fuchsia-pkg-testing",
"//third_party/rust_crates/vendor:pretty_assertions",
"//third_party/rust_crates/vendor:proptest",
],
)
rustc_test(
name = "src_model_tests",
srcs = _COMPONENT_MANAGER_SRCS,
build_flags = [
"//build/config/rust:bootfs",
":optimize-for-size",
],
compile_data = [
":dispatcher_cm", # @bazel2gn:path_overwrite:${dispatcher_cm}
":elf_runner_cm", # @bazel2gn:path_overwrite:${elf_runner_cm}
],
crate_name = "component_manager_src_model_tests",
crate_root = "src/main.rs",
data = [
":dispatcher_cm", # @bazel2gn:path_overwrite::dispatcher_cm($default_toolchain)
":elf_runner_cm", # @bazel2gn:path_overwrite::elf_runner_cm($default_toolchain)
"//src/sys/lib/fuchsia-bootfs:testdata_bootfs",
],
edition = "2024",
exec_properties = RBE_USE_LARGE_WORKER,
proc_macro_deps = _COMPONENT_MANAGER_PROC_MACRO_DEPS,
rustc_env = {
"DISPATCHER_CM_PATH": "$(location :dispatcher_cm)", # @bazel2gn:value_overwrite:${dispatcher_cm_path}
"ELF_RUNNER_CM_PATH": "$(location :elf_runner_cm)", # @bazel2gn:value_overwrite:${elf_runner_cm_path}
},
rustc_flags = ["--cfg=feature=\"src_model_tests\""],
tags = [
"exclude_toolchain_tags=heapdump",
],
deps = _COMPONENT_MANAGER_DEPS + _COMPONENT_MANAGER_TEST_DEPS + [
"//src/lib/diagnostics/hierarchy/rust:diagnostics-hierarchy", # @bazel2gn:path_overwrite://src/lib/diagnostics/hierarchy/rust
],
)
rustc_binary(
name = "bin_with_tracing",
srcs = _COMPONENT_MANAGER_SRCS,
build_flags = [
"//build/config/rust:bootfs",
":optimize-for-size",
],
compile_data = [
":dispatcher_cm", # @bazel2gn:path_overwrite:${dispatcher_cm}
":elf_runner_cm", # @bazel2gn:path_overwrite:${elf_runner_cm}
],
crate_features = ["tracing"],
crate_name = "component_manager_with_tracing",
data = [
":dispatcher_cm", # @bazel2gn:path_overwrite::dispatcher_cm($default_toolchain)
":elf_runner_cm", # @bazel2gn:path_overwrite::elf_runner_cm($default_toolchain)
],
edition = "2024",
exec_properties = RBE_USE_LARGE_WORKER,
proc_macro_deps = _COMPONENT_MANAGER_PROC_MACRO_DEPS,
rustc_env = {
"DISPATCHER_CM_PATH": "$(location :dispatcher_cm)", # @bazel2gn:value_overwrite:${dispatcher_cm_path}
"ELF_RUNNER_CM_PATH": "$(location :elf_runner_cm)", # @bazel2gn:value_overwrite:${elf_runner_cm_path}
},
tags = [
"assert_no_deps=//third_party/rust_crates/vendor:regex",
"assert_no_deps=//third_party/rust_crates/vendor:serde_json5", # @bazel2gn:path_overwrite://third_party/rust_crates:serde_json5($current_toolchain)
"exclude_toolchain_tags=heapdump",
],
visibility = [
"//src/lib/fuchsia-component-test/tests:__pkg__",
"//src/sys/component_manager/tests:__subpackages__",
],
deps = _COMPONENT_MANAGER_DEPS + [
"//sdk/fidl/fuchsia.tracing.provider:fuchsia.tracing.provider_rust",
"//src/lib/trace/rust:trace-provider",
],
)
fx_packaged_binary(
name = "bin_with_tracing_packaged",
binary = ":bin_with_tracing",
binary_name = "component_manager_with_tracing",
visibility = [
"//src/lib/fuchsia-component-test/tests:__pkg__",
"//src/sys/component_manager:__subpackages__",
],
)
# @bazel2gn:skip
component_config(
name = "component_manager_realm_builder_config",
srcs = [
"//src/sys/component_manager/configs:no_debug.json5",
"//src/sys/component_manager/configs:test_config.base.json5",
],
dest = "data/component_manager_config",
)
# @bazel2gn:skip
component_config(
name = "component_manager_realm_builder_debug_config",
srcs = [
"//src/sys/component_manager/configs:debug.json5",
"//src/sys/component_manager/configs:test_config.base.json5",
],
dest = "data/component_manager_config",
)
# @bazel2gn:skip
component_id_index_config(
name = "component_id_index_for_debug_config",
sources = [
"//src/sys/component_manager/configs:component_id_index_for_debug.json5",
],
)
# @bazel2gn:skip
fx_component_manifest(
name = "component-manager-realm-builder-cmp-manifest",
testonly = True,
component_name = "component_manager",
includes = [
"//sdk/lib/inspect:client.shard",
"//sdk/lib/syslog:client.shard",
],
manifest = "meta/component_manager.cml",
)
# This v2 component bundles component manager with a config suitable for running
# a nested component manager inside of realm builder.
# @bazel2gn:skip
fx_component(
name = "component-manager-realm-builder-cmp",
testonly = True,
compiled_manifest = ":component-manager-realm-builder-cmp-manifest",
visibility = [
"//src/lib/fuchsia-component-test/tests:__pkg__",
"//src/sys/component_manager:__subpackages__",
],
deps = [
":bin_with_tracing_packaged",
":component_manager_realm_builder_config",
],
)
# This v2 component bundles component manager with a debug config suitable for
# running a nested component manager inside of realm builder.
# @bazel2gn:skip
fx_component(
name = "component-manager-realm-builder-debug-cmp",
testonly = True,
compiled_manifest = ":component-manager-realm-builder-cmp-manifest",
visibility = [
"//src/lib/fuchsia-component-test/tests:__pkg__",
"//src/sys/component_manager/tests:__subpackages__",
],
deps = [
":bin_with_tracing_packaged",
":component_id_index_for_debug_config",
":component_manager_realm_builder_debug_config",
],
)
fx_component_manifest(
name = "elf_runner-manifest",
component_name = "elf_runner",
manifest = "meta/elf_runner.cml",
)
fx_component(
name = "elf_runner",
compiled_manifest = ":elf_runner-manifest",
visibility = [
"//examples/components/runner/colocated/integration_tests:__pkg__",
"//src/sys/component_manager/tests/builtin_runner:__pkg__",
],
)
measure_tape(
name = "measure_tape_for_events",
fidls = [
"//sdk/fidl/fuchsia.component",
"//sdk/fidl/fuchsia.io",
],
target_binding = "rust",
target_types = ["fuchsia.component/Event"],
)
measure_tape(
name = "measure_tape_for_instance",
fidls = ["//sdk/fidl/fuchsia.sys2"],
target_binding = "rust",
target_types = ["fuchsia.sys2/Instance"],
)
# Bazel tests under //src/sys/component_manager. These are exported to `fx test`
# and infra builders through the `bazel_test_suite()` targets in BUILD.gn.
test_suite(
name = "component_manager_target_tests",
target_compatible_with = ["@platforms//os:fuchsia"],
tests = [
"//src/sys/component_manager/tests/bootfs:bootfs-tests",
"//src/sys/component_manager/tests/capability_provider_vfs_compliance:capability-provider-vfs-compliance-integration-test",
"//src/sys/component_manager/tests/fuchsia_io:cm_fuchsia_io",
"//src/sys/component_manager/tests/job_with_available_exception_channel:job-with-available-exception-channel-test",
"//src/sys/component_manager/tests/security_policy/ambient_mark_vmo_exec:security-policy-vmex-integration-test",
"//src/sys/component_manager/tests/security_policy/create_raw_processes:security-policy-create-raw-processes-test",
"//src/sys/component_manager/tests/security_policy/main_process_critical:security-policy-critical-integration-test",
],
)
test_suite(
name = "component_manager_hermetic_target_tests",
target_compatible_with = ["@platforms//os:fuchsia"],
tests = [
"//src/sys/component_manager/stress_tests:component-manager-stress-tests",
"//src/sys/component_manager/tests/abi_compatibility:abi_compatibility_tests",
"//src/sys/component_manager/tests/binder:binder_integration_test",
"//src/sys/component_manager/tests/builtin_dispatcher_component:builtin_dispatcher_component_test",
"//src/sys/component_manager/tests/builtin_runner:builtin-runner-test",
"//src/sys/component_manager/tests/collections:collections_integration_test",
"//src/sys/component_manager/tests/component-time:component-v1-time-unittests",
"//src/sys/component_manager/tests/component-time:component-v2-time-unittests",
"//src/sys/component_manager/tests/controller:tests",
"//src/sys/component_manager/tests/crash_introspect:crash-introspect-test",
"//src/sys/component_manager/tests/destruction:destruction_integration_test",
"//src/sys/component_manager/tests/dictionaries:dictionaries_integration_test",
"//src/sys/component_manager/tests/dictionaries_route_to_all:dictionaries_route_to_all_test_root",
"//src/sys/component_manager/tests/directory_routing:directory_routing_test",
"//src/sys/component_manager/tests/dynamic_offers:dyn_offers_test",
"//src/sys/component_manager/tests/elf_runner:elf-runner-test",
"//src/sys/component_manager/tests/events:events_integration_test",
"//src/sys/component_manager/tests/exit_code:exit_code_integration_test",
"//src/sys/component_manager/tests/introspector:introspector-integration-test",
"//src/sys/component_manager/tests/lifecycle_controller:lifecycle_controller_test",
"//src/sys/component_manager/tests/namespace_capabilities:namespace-capabilities-integration-test",
"//src/sys/component_manager/tests/ota_health_verification:ota-health-verification-test",
"//src/sys/component_manager/tests/panic-test:component_manager_panic_test",
"//src/sys/component_manager/tests/pkg_from_framework:pkg_from_framework_test",
"//src/sys/component_manager/tests/realm:tests",
"//src/sys/component_manager/tests/reboot_on_terminate:reboot_on_terminate_test",
"//src/sys/component_manager/tests/resolvers/cast:cast_resolver_test",
"//src/sys/component_manager/tests/resolvers/custom:component-manager-test-resolver",
"//src/sys/component_manager/tests/resolvers/protocol:resolver-api-test",
"//src/sys/component_manager/tests/rights:rights_integration_test",
"//src/sys/component_manager/tests/routing:routing_integration_test",
"//src/sys/component_manager/tests/security_policy/capability_allowlist:security-policy-capability-allowlist-integration-test",
"//src/sys/component_manager/tests/security_policy/next_vdso:security-policy-next-vdso-test",
"//src/sys/component_manager/tests/services:component-manager-services-tests",
"//src/sys/component_manager/tests/shutdown:shutdown_integration_test",
"//src/sys/component_manager/tests/stop_with_escrow:stop_with_escrow_integration_test",
"//src/sys/component_manager/tests/storage:storage_integration_test",
],
)
# Retained in GN (`BUILD.gn`): `bootfs` and `bootfs_with_tracing` remain
# `bootfs_files_for_assembly` targets in GN because `:bin` and
# `:bin_with_tracing` link the dual-built `//src/storage/lib/vfs/rust:vfs_dylib`
# and shared C/C++ libraries (`libcrypto.so`, `libfdio.so`, `libtrace-engine.so`,
# `libasync-default.so`), which collide in BootFS with GN-built
# `bootfs_files_package` targets.