blob: 3d15a593253deffafc945103340bd9e1d3394eee [file] [log] [blame]
# Copyright 2025 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.
import("//build/host.gni")
import("//build/rust/rustc_library.gni")
assert(is_host, "Assembly libraries are host-only")
rustc_library("artifact_cache") {
edition = "2021"
name = "assembly_artifact_cache"
version = "0.1.0"
with_unit_tests = true
deps = [
"//src/lib/assembly/config_schema",
"//src/lib/gcs",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:camino",
"//third_party/rust_crates:hyper",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:tempfile",
"//third_party/rust_crates:thiserror",
]
test_deps = [
"//src/lib/fuchsia-async",
"//third_party/rust_crates:pretty_assertions",
]
sources = [
"src/artifact.rs",
"src/artifact_cache.rs",
"src/build_api.rs",
"src/cipd.rs",
"src/gn_label.rs",
"src/lib.rs",
"src/mos.rs",
]
}