| # Copyright 2022 The ChromiumOS Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| load("@rules_rust//rust:defs.bzl", "rust_binary") |
| load("//bazel/portage/build_defs:common.bzl", "RUSTC_DEBUG_FLAGS") |
| |
| rust_binary( |
| name = "sdk_update", |
| srcs = ["src/main.rs"], |
| data = [ |
| ":setup.sh", |
| "//bazel/portage/bin/run_in_container", |
| ], |
| rustc_flags = RUSTC_DEBUG_FLAGS, |
| visibility = [ |
| "//bazel/portage/sdk:__pkg__", |
| "@portage//:__subpackages__", |
| ], |
| deps = [ |
| "//bazel/portage/common/cliutil", |
| "//bazel/portage/common/container", |
| "//bazel/portage/common/durabletree", |
| "//bazel/portage/common/fileutil", |
| "@alchemy_crates//:anyhow", |
| "@alchemy_crates//:clap", |
| "@rules_rust//tools/runfiles", |
| ], |
| ) |