| # 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/platforms:constraints.bzl", "HOST_OS_CONSTRAINTS") | |
| load("//build/bazel/rules/rust:rustc_library.bzl", "rustc_library") | |
| load("//src/developer/ffx/build:ffx_tool.bzl", "ffx_tool") | |
| package(default_applicable_licenses = ["//:license"]) | |
| rustc_library( | |
| name = "lib", | |
| srcs = [ | |
| "src/generate.rs", | |
| "src/lib.rs", | |
| ], | |
| crate_name = "ffx_auth", | |
| edition = "2024", | |
| target_compatible_with = HOST_OS_CONSTRAINTS, | |
| deps = [ | |
| "//src/developer/ffx/lib/auth", | |
| "//src/developer/ffx/lib/fho:lib", | |
| "//src/developer/ffx/lib/writer:lib", | |
| "//src/lib/structured_ui", | |
| "//third_party/rust_crates/vendor:anyhow", | |
| "//third_party/rust_crates/vendor:argh", | |
| ], | |
| ) | |
| # LINT.IfChange | |
| ffx_tool( | |
| name = "ffx_auth", | |
| srcs = ["src/main.rs"], | |
| binary_name = "ffx-auth", | |
| edition = "2024", | |
| deps = [ | |
| ":lib", | |
| "//src/developer/ffx/lib/fho:lib", | |
| "//src/lib/fuchsia-async", | |
| ], | |
| ) | |
| # LINT.ThenChange(BUILD.gn) |