| # Copyright 2019 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/test/test_package.gni") |
| |
| rustc_library("ramdevice-client") { |
| with_unit_tests = true |
| edition = "2018" |
| deps = [ |
| "//garnet/public/rust/fdio", |
| "//garnet/public/rust/fuchsia-async", |
| "//garnet/public/rust/fuchsia-zircon", |
| "//zircon/public/fidl/fuchsia-io:fuchsia-io-rustc", |
| ] |
| non_rust_deps = [ "//zircon/public/lib/ramdevice-client" ] |
| } |
| |
| test_package("ramdevice-client-test") { |
| deps = [ |
| ":ramdevice-client_test", |
| ] |
| tests = [ |
| { |
| name = "ramdevice_client_lib_test" |
| environments = basic_envs |
| }, |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":ramdevice-client-test", |
| ] |
| } |