blob: 09ff270f645fedca8f9e3ab330eec526cc8dadd2 [file] [log] [blame] [edit]
# 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", "rust_test")
rust_binary(
name = "build_image",
srcs = glob(["src/*.rs"]),
crate_name = "build_image",
data = glob(["container_files/*"]),
visibility = ["//bazel:internal"],
deps = [
"//bazel/ebuild/private/common/cliutil:cliutil_rust",
"//bazel/ebuild/private/common/makechroot",
"//bazel/ebuild/private/common/mountsdk",
"//bazel/ebuild/private/common/portage/binarypackage:binarypackage_rust",
"@alchemy_crates//:anyhow",
"@alchemy_crates//:clap",
"@alchemy_crates//:users",
"@rules_rust//tools/runfiles",
],
)
rust_test(
name = "build_image_test",
size = "small",
crate = ":build_image",
)