| # 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_binary.gni") |
| import("//src/sys/build/fuchsia_component.gni") |
| import("//src/sys/build/fuchsia_package.gni") |
| |
| group("tests") { |
| testonly = true |
| deps = [ "integration:tests" ] |
| } |
| |
| rustc_binary("bin") { |
| name = "network_speed_test" |
| edition = "2018" |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.net:fuchsia.net-rustc", |
| "//sdk/fidl/fuchsia.net.http:fuchsia.net.http-rustc", |
| "//sdk/fidl/fuchsia.net.stack:fuchsia.net.stack-rustc", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/syslog/rust:syslog", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:log", |
| "//third_party/rust_crates:pin-utils", |
| "//third_party/rust_crates:serde", |
| "//third_party/rust_crates:serde_json", |
| "//third_party/rust_crates:structopt", |
| "//third_party/rust_crates:thiserror", |
| ] |
| |
| sources = [ |
| "src/main.rs", |
| "src/opts.rs", |
| ] |
| } |
| |
| fuchsia_component("component") { |
| component_name = "network-speed-test" |
| deps = [ ":bin" ] |
| manifest = "meta/network-speed-test.cmx" |
| } |
| |
| fuchsia_package("network-speed-test") { |
| deps = [ |
| ":component", |
| "//src/connectivity/network/http-client", |
| ] |
| } |