| # Copyright 2021 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_binary.gni") |
| |
| group("rust") { |
| deps = [ |
| ":logs-default-rust", |
| ":logs-stderr-rust", |
| ":logs-stdout-and-stderr-rust", |
| ":logs-stdout-rust", |
| ] |
| } |
| |
| rustc_binary("bin") { |
| name = "prints_when_launched_rust" |
| edition = "2024" |
| |
| deps = [] |
| |
| sources = [ "src/main.rs" ] |
| } |
| |
| fuchsia_component("logs-stdout-and-stderr-rust") { |
| deps = [ ":bin" ] |
| manifest = "meta/logs_stdout_and_stderr_rust.cml" |
| } |
| |
| fuchsia_component("logs-default-rust") { |
| deps = [ ":bin" ] |
| manifest = "meta/logs_default_rust.cml" |
| } |
| |
| fuchsia_component("logs-stdout-rust") { |
| deps = [ ":bin" ] |
| manifest = "meta/logs_stdout_rust.cml" |
| } |
| |
| fuchsia_component("logs-stderr-rust") { |
| deps = [ ":bin" ] |
| manifest = "meta/logs_stderr_rust.cml" |
| } |