| # 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/package.gni") | 
 | import("//build/rust/rustc_library.gni") | 
 | import("//build/test/test_package.gni") | 
 | import("//build/testing/environments.gni") | 
 |  | 
 | rustc_library("ethernet") { | 
 |   with_unit_tests = true | 
 |   edition = "2018" | 
 |  | 
 |   deps = [ | 
 |     "//sdk/fidl/fuchsia.hardware.ethernet:fuchsia.hardware.ethernet-rustc", | 
 |     "//src/lib/fdio/rust:fdio", | 
 |     "//src/lib/fidl/rust/fidl", | 
 |     "//src/lib/fuchsia-async", | 
 |     "//src/lib/fuchsia-runtime", | 
 |     "//src/lib/network/fidl_fuchsia_hardware_ethernet_ext", | 
 |     "//src/lib/shared-buffer", | 
 |     "//src/lib/zircon/rust:fuchsia-zircon", | 
 |     "//third_party/rust_crates:anyhow", | 
 |     "//third_party/rust_crates:bitflags", | 
 |     "//third_party/rust_crates:futures", | 
 |     "//third_party/rust_crates:thiserror", | 
 |   ] | 
 |  | 
 |   sources = [ | 
 |     "src/buffer.rs", | 
 |     "src/ethernet_sys.rs", | 
 |     "src/lib.rs", | 
 |   ] | 
 | } | 
 |  | 
 | unittest_package("ethernet-tests") { | 
 |   deps = [ ":ethernet_test" ] | 
 |  | 
 |   tests = [ | 
 |     { | 
 |       name = "ethernet_lib_test" | 
 |       environments = basic_envs | 
 |     }, | 
 |   ] | 
 | } |