blob: 7f277888131337f840763d972a8970f5d903c8d9 [file] [log] [blame]
Adam Barthfdcf9872019-02-20 16:57:40 -08001# Copyright 2019 The Fuchsia Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//build/package.gni")
6import("//build/rust/rustc_binary.gni")
7import("//build/rust/rustc_library.gni")
8
Adam Barthf35be872019-04-26 19:22:37 +00009group("tests") {
10 testonly = true
11
12 deps = [
13 "integration:tests",
14 ]
15}
16
Adam Barthfdcf9872019-02-20 16:57:40 -080017rustc_binary("bin") {
18 name = "http_client"
19 edition = "2018"
20
21 deps = [
22 "//garnet/public/lib/fidl/rust/fidl",
Adam Barthfdcf9872019-02-20 16:57:40 -080023 "//garnet/public/rust/fuchsia-async",
Taylor Cramer33b6af72019-04-16 19:37:21 +000024 "//garnet/public/rust/fuchsia-component",
Adam Barthfdcf9872019-02-20 16:57:40 -080025 "//garnet/public/rust/fuchsia-hyper",
26 "//garnet/public/rust/fuchsia-zircon",
27 "//sdk/fidl/fuchsia.net.oldhttp:fuchsia.net.oldhttp-rustc",
Taylor Cramer77852102019-02-27 15:00:26 -080028 "//third_party/rust_crates:failure",
29 "//third_party/rust_crates:futures-preview",
Adam Barthf35be872019-04-26 19:22:37 +000030 "//third_party/rust_crates:hyper",
Adam Barthfdcf9872019-02-20 16:57:40 -080031 ]
32}
33
34package("http_client") {
Adam Barthfdcf9872019-02-20 16:57:40 -080035 meta = [
36 {
37 path = rebase_path("meta/http_client.cmx")
38 dest = "http_client.cmx"
39 },
40 ]
Adam Barthf35be872019-04-26 19:22:37 +000041 deps = [
42 ":bin",
43 ]
44
45 binaries = [
46 {
47 name = "http_client"
James Tucker511ce4b2019-05-01 04:06:34 +000048 path = "http_client"
Adam Barthf35be872019-04-26 19:22:37 +000049 },
50 ]
Adam Barthfdcf9872019-02-20 16:57:40 -080051}