blob: 2f8b904e764a0f4e7ae34b92dfba39e56605fbad [file] [log] [blame]
# Copyright 2018 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("tuf") {
edition = "2018"
with_unit_tests = true
source_root = "../../../../third_party/rust-mirrors/rust-tuf/src/lib.rs"
deps = [
"//third_party/rust_crates:chrono",
"//third_party/rust_crates:data-encoding",
"//third_party/rust_crates:derp",
"//third_party/rust_crates:futures-preview",
"//third_party/rust_crates:http",
"//third_party/rust_crates:hyper",
"//third_party/rust_crates:itoa",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:log",
"//third_party/rust_crates:maplit",
"//third_party/rust_crates:ring",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_derive",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:tempfile",
"//third_party/rust_crates:untrusted",
"//third_party/rust_crates:url",
]
}
test_package("tuf-tests") {
deps = [
":tuf",
]
tests = [
{
name = "tuf_lib_test"
environments = basic_envs
},
]
}