blob: ec0b686297b5b9187791637edf4ae610f7151381 [file] [log] [blame]
# 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("//build/package.gni")
rustc_binary("bin") {
name = "example_http_server"
edition = "2018"
deps = [
"//garnet/public/lib/fidl/rust/fidl",
"//garnet/public/rust/fuchsia-app",
"//garnet/public/rust/fuchsia-async",
"//garnet/public/rust/fuchsia-syslog",
"//garnet/public/rust/fuchsia-zircon",
"//third_party/rust-crates/rustc_deps:rouille",
"//third_party/rust-crates/rustc_deps:failure",
"//third_party/rust-crates/rustc_deps:serde",
"//third_party/rust-crates/rustc_deps:serde_derive",
"//third_party/rust-crates/rustc_deps:serde_json",
]
}
package("example_http_server") {
deps = [
":bin",
]
binary = "rust_crates/example_http_server"
resources = [
{
path = rebase_path("public/index.html")
dest = "index.html"
},
]
meta = [
{
path = rebase_path("meta/example_http_server.cmx")
dest = "example_http_server.cmx"
},
]
}