blob: 7bec6a5547628dd171d21cb01e94f9b7e638af90 [file]
# Copyright 2020 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/components.gni")
import("//build/rust/rustc_library.gni")
rustc_library("system-image") {
version = "0.1.0"
edition = "2018"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.boot:fuchsia.boot-rustc",
"//src/lib/fidl/rust/fidl",
"//src/sys/pkg/lib/fuchsia-hash",
"//src/sys/pkg/lib/fuchsia-pkg",
"//third_party/rust_crates:proptest",
"//third_party/rust_crates:thiserror",
]
test_deps = [
"//src/lib/fuchsia-async",
"//src/sys/pkg/testing/mock-boot-arguments:lib",
"//third_party/rust_crates:matches",
]
sources = [
"src/errors.rs",
"src/lib.rs",
"src/non_static_allowlist.rs",
"src/path_hash_mapping.rs",
]
}
fuchsia_unittest_package("system-image-tests") {
deps = [ ":system-image_test" ]
}
group("tests") {
testonly = true
public_deps = [ ":system-image-tests" ]
}