| # 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-io", |
| "//third_party/rust_crates:futures-util", |
| "//third_party/rust_crates:http", |
| "//third_party/rust_crates:hyper", |
| "//third_party/rust_crates:itoa", |
| "//third_party/rust_crates:log", |
| "//third_party/rust_crates:parking_lot", |
| "//third_party/rust_crates:percent-encoding", |
| "//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_deps = [ |
| "//third_party/rust_crates:futures-executor", |
| "//third_party/rust_crates:lazy_static", |
| "//third_party/rust_crates:maplit", |
| "//third_party/rust_crates:matches", |
| "//third_party/rust_crates:pretty_assertions", |
| ] |
| } |
| |
| test_package("rust-tuf-tests") { |
| deps = [ ":tuf_test" ] |
| |
| tests = [ |
| { |
| name = "tuf_lib_test" |
| dest = "tuf-lib-test" |
| environments = basic_envs |
| }, |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":rust-tuf-tests" ] |
| } |