blob: ffac4351a0f9eded2320786ecdabd847f47ab61b [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("//src/sys/build/components.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" ]
}
fuchsia_unittest_package("data-proxy-test") {
manifest = "meta/data_proxy_bin_test.cmx"
deps = [ ":bin_test" ]
}