blob: 4c5503917fe5c2bfa40468e55f4be9838bcf108a [file] [log] [blame]
# Copyright 2019 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/package.gni")
import("//build/rust/rustc_library.gni")
import("//build/test/test_package.gni")
import("//build/testing/environments.gni")
rustc_library("fuchsia-pkg") {
version = "0.1.0"
edition = "2018"
with_unit_tests = true
deps = [
"//src/sys/pkg/lib/fuchsia-archive",
"//src/sys/pkg/lib/fuchsia-hash",
"//src/sys/pkg/lib/fuchsia-merkle",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:maplit",
"//third_party/rust_crates:proptest",
"//third_party/rust_crates:proptest-derive",
"//third_party/rust_crates:rand",
"//third_party/rust_crates:regex",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:tempfile",
"//third_party/rust_crates:thiserror",
]
sources = [
"src/build.rs",
"src/creation_manifest.rs",
"src/errors.rs",
"src/lib.rs",
"src/meta_contents.rs",
"src/meta_package.rs",
"src/package_manifest.rs",
"src/path.rs",
"src/test.rs",
]
}
test_package("fuchsia-pkg-tests") {
deps = [ ":fuchsia-pkg_test" ]
tests = [
{
name = "fuchsia_pkg_lib_test"
dest = "fuchsia-pkg-tests"
environments = basic_envs
},
]
}
group("tests") {
testonly = true
public_deps = [ ":fuchsia-pkg-tests" ]
}