blob: 047e7f5e8e829d07021ce66207a9aa18eb455561 [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/platforms:constraints.bzl", "HOST_OS_CONSTRAINTS")
load("//build/bazel/rules/host_tests:host_rustc_test.bzl", "host_rustc_test")
load("//build/bazel/rules/rust:rustc_library.bzl", "rustc_library")
package(default_applicable_licenses = ["//:license"])
rustc_library(
name = "lib",
srcs = ["src/lib.rs"],
crate_name = "credentials",
edition = "2024",
target_compatible_with = HOST_OS_CONSTRAINTS,
visibility = [
"//src/developer/ffx:__subpackages__",
"//src/developer/lib:__pkg__",
"//src/lib/assembly/product_bundle:__pkg__",
],
deps = [
"//src/lib/gcs",
"//third_party/rust_crates/vendor:anyhow",
"//third_party/rust_crates/vendor:home",
"//third_party/rust_crates/vendor:log",
"//third_party/rust_crates/vendor:serde",
"//third_party/rust_crates/vendor:serde_json",
],
)
host_rustc_test(
name = "lib_test",
crate = ":lib",
crate_name = "credentials_lib_test",
visibility = ["//src/developer:__pkg__"],
deps = [
"//src/lib/fuchsia-async",
"//src/lib/testing/temp_test_env:lib",
"//third_party/rust_crates/vendor:serial_test",
],
)