Adam Barth | fdcf987 | 2019-02-20 16:57:40 -0800 | [diff] [blame] | 1 | # 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 | |
| 5 | import("//build/package.gni") |
| 6 | import("//build/rust/rustc_binary.gni") |
| 7 | import("//build/rust/rustc_library.gni") |
| 8 | |
Adam Barth | f35be87 | 2019-04-26 19:22:37 +0000 | [diff] [blame] | 9 | group("tests") { |
| 10 | testonly = true |
| 11 | |
| 12 | deps = [ |
| 13 | "integration:tests", |
| 14 | ] |
| 15 | } |
| 16 | |
Adam Barth | fdcf987 | 2019-02-20 16:57:40 -0800 | [diff] [blame] | 17 | rustc_binary("bin") { |
| 18 | name = "http_client" |
| 19 | edition = "2018" |
| 20 | |
| 21 | deps = [ |
| 22 | "//garnet/public/lib/fidl/rust/fidl", |
Adam Barth | fdcf987 | 2019-02-20 16:57:40 -0800 | [diff] [blame] | 23 | "//garnet/public/rust/fuchsia-async", |
Taylor Cramer | 33b6af7 | 2019-04-16 19:37:21 +0000 | [diff] [blame] | 24 | "//garnet/public/rust/fuchsia-component", |
Adam Barth | fdcf987 | 2019-02-20 16:57:40 -0800 | [diff] [blame] | 25 | "//garnet/public/rust/fuchsia-hyper", |
| 26 | "//garnet/public/rust/fuchsia-zircon", |
| 27 | "//sdk/fidl/fuchsia.net.oldhttp:fuchsia.net.oldhttp-rustc", |
Taylor Cramer | 7785210 | 2019-02-27 15:00:26 -0800 | [diff] [blame] | 28 | "//third_party/rust_crates:failure", |
| 29 | "//third_party/rust_crates:futures-preview", |
Adam Barth | f35be87 | 2019-04-26 19:22:37 +0000 | [diff] [blame] | 30 | "//third_party/rust_crates:hyper", |
Adam Barth | fdcf987 | 2019-02-20 16:57:40 -0800 | [diff] [blame] | 31 | ] |
| 32 | } |
| 33 | |
| 34 | package("http_client") { |
Adam Barth | fdcf987 | 2019-02-20 16:57:40 -0800 | [diff] [blame] | 35 | meta = [ |
| 36 | { |
| 37 | path = rebase_path("meta/http_client.cmx") |
| 38 | dest = "http_client.cmx" |
| 39 | }, |
| 40 | ] |
Adam Barth | f35be87 | 2019-04-26 19:22:37 +0000 | [diff] [blame] | 41 | deps = [ |
| 42 | ":bin", |
| 43 | ] |
| 44 | |
| 45 | binaries = [ |
| 46 | { |
| 47 | name = "http_client" |
James Tucker | 511ce4b | 2019-05-01 04:06:34 +0000 | [diff] [blame] | 48 | path = "http_client" |
Adam Barth | f35be87 | 2019-04-26 19:22:37 +0000 | [diff] [blame] | 49 | }, |
| 50 | ] |
Adam Barth | fdcf987 | 2019-02-20 16:57:40 -0800 | [diff] [blame] | 51 | } |