| # Copyright 2025 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("@io_bazel_rules_go//go:def.bzl", "go_binary") |
| load("@platforms//host:constraints.bzl", "HOST_CONSTRAINTS") |
| load("//build/tools/bazel2gn/bazel_rules:defs.bzl", "idk_host_tool", "install_host_tools") |
| |
| go_binary( |
| name = "fidlgen_rust", |
| srcs = ["main.go"], |
| target_compatible_with = HOST_CONSTRAINTS, |
| deps = [ |
| "//tools/fidl/fidlgen_rust/codegen", |
| "//tools/fidl/lib/fidlgen", |
| ], |
| ) |
| |
| idk_host_tool( |
| name = "fidlgen_rust", |
| api_area = "FIDL", |
| category = "partner", |
| idk_name = "fidlgen_rust", |
| implementation_deps = [":fidlgen_rust"], |
| target_compatible_with = HOST_CONSTRAINTS, |
| ) |
| |
| install_host_tools( |
| name = "host", |
| implementation_deps = [":fidlgen_rust"], |
| target_compatible_with = HOST_CONSTRAINTS, |
| tool_output_names = ["fidlgen_rust"], |
| ) |