| # 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_library.gni") |
| import("//build/package.gni") |
| |
| rustc_library("ethernet") { |
| with_unit_tests = true |
| edition = "2018" |
| |
| deps = [ |
| "//garnet/lib/rust/fidl_zircon_ethernet_ext", |
| "//garnet/public/lib/fidl/rust/fidl", |
| "//garnet/public/rust/fdio", |
| "//garnet/public/rust/fuchsia-async", |
| "//garnet/public/rust/fuchsia-zircon", |
| "//garnet/public/rust/shared-buffer", |
| "//third_party/rust-crates/rustc_deps:failure", |
| "//third_party/rust-crates/rustc_deps:futures-preview", |
| "//zircon/public/fidl/zircon-ethernet:zircon-ethernet-rustc", |
| ] |
| } |
| |
| package("ethernet-tests") { |
| testonly = true |
| |
| deps = [ |
| ":ethernet", |
| ] |
| |
| tests = [ |
| { |
| name = "ethernet_lib_test_rustc" |
| }, |
| ] |
| } |