blob: 9650c9c9d165dd4d10e53fc8c3a4e9fea457c824 [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(
"//build/bazel/rules/components:fx_component.bzl",
"fx_component",
"fx_component_manifest",
)
load("//build/bazel/rules/packages:fx_packaged_binary.bzl", "fx_packaged_binary")
load("//build/bazel/rules/rust:rustc_binary.bzl", "rustc_binary")
package(default_applicable_licenses = ["//:license"])
rustc_binary(
name = "lifecycle_placeholder",
srcs = ["src/main.rs"],
edition = "2024",
tags = ["manual"],
deps = [
"//sdk/fidl/fuchsia.process.lifecycle:fuchsia.process.lifecycle_rust",
"//sdk/rust/zx",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-runtime",
"//third_party/rust_crates/vendor:futures-util",
"//third_party/rust_crates/vendor:log",
],
)
fx_packaged_binary(
name = "lifecycle_placeholder_packaged_bin",
binary = ":lifecycle_placeholder",
binary_name = "lifecycle_placeholder",
)
fx_component_manifest(
name = "lifecycle-manifest",
testonly = True,
component_name = "lifecycle",
includes = ["//sdk/lib/syslog:client.shard"],
manifest = "meta/lifecycle.cml",
)
fx_component(
name = "lifecycle",
testonly = True,
compiled_manifest = ":lifecycle-manifest",
visibility = [
"//src/sys/component_manager:__pkg__",
"//src/sys/lib/elf_runner:__subpackages__",
],
deps = [":lifecycle_placeholder_packaged_bin"],
)