blob: 7f0484c08d422397b287798a4eb048e65f736e29 [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_binary.gni")
import("//build/test/test_package.gni")
rustc_binary("bin") {
name = "data_proxy"
with_unit_tests = true
edition = "2018"
deps = [
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-hyper",
"//src/lib/syslog/rust:syslog",
"//src/testing/sl4f/fidl:fuchsia.testing.proxy-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
]
test_deps = [
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:hyper",
]
sources = [ "src/main.rs" ]
}
test_package("data-proxy-test") {
deps = [ ":bin_test" ]
tests = [
{
name = "data_proxy_bin_test"
environments = basic_envs
},
]
}