blob: c0f42f38252ce7d3ca22874e9c8decf57bf166f6 [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/rust:defs.bzl", "rustc_library")
package(default_applicable_licenses = ["//:license"])
rustc_library(
name = "memory_buckets",
srcs = [
"src/lib.rs",
"src/memory_buckets.rs",
],
crate_name = "assembly_memory_buckets",
edition = "2024",
target_compatible_with = HOST_OS_CONSTRAINTS,
test_deps = [
"//third_party/rust_crates/vendor:serde_json",
"//third_party/rust_crates/vendor:tempfile",
],
version = "0.1.0",
visibility = [
"//src/lib/assembly:__pkg__",
"//src/lib/assembly/image_assembly_config_builder:__pkg__",
],
with_host_unit_tests = True,
deps = [
"//src/lib/assembly/util",
"//third_party/rust_crates/vendor:anyhow",
"//third_party/rust_crates/vendor:camino",
"//third_party/rust_crates/vendor:serde",
],
)