blob: 6eca62bad090b2b5649a7f0471f1ccfedcb47a14 [file] [log] [blame]
# 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/rust/rustc_library.gni")
import("//build/test/test_package.gni")
import("//build/testing/environments.gni")
rustc_library("system-image") {
version = "0.1.0"
edition = "2018"
with_unit_tests = true
deps = [
"//src/sys/pkg/lib/fuchsia-hash",
"//src/sys/pkg/lib/fuchsia-pkg",
"//third_party/rust_crates:matches",
"//third_party/rust_crates:proptest",
"//third_party/rust_crates:thiserror",
]
sources = [
"src/errors.rs",
"src/lib.rs",
"src/path_hash_mapping.rs",
]
}
test_package("system-image-tests") {
deps = [ ":system-image_test" ]
tests = [
{
name = "system_image_lib_test"
dest = "system-image-lib-test"
environments = basic_envs
},
]
}
group("tests") {
testonly = true
public_deps = [ ":system-image-tests" ]
}