blob: 0196eb34b98ec84ca05b263b42beb08a5d703b3d [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/components.gni")
import("//build/rust/rustc_binary.gni")
rustc_binary("bin") {
name = "data_proxy"
with_unit_tests = true
edition = "2021"
deps = [
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/testing/sl4f/fidl:fuchsia.testing.proxy_rust",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:tracing",
]
test_deps = [
"//src/lib/fuchsia-hyper",
"//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.cml"
deps = [
":bin_test",
"//src/connectivity/network/netstack:component-debug",
]
}