| # Copyright 2021 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/components.gni") |
| import("//build/rust/rustc_library.gni") |
| |
| rustc_library("virtio-device") { |
| name = "virtio-device" |
| version = "1.0.0" |
| edition = "2021" |
| |
| sources = [ |
| "src/chain.rs", |
| "src/fake_queue.rs", |
| "src/lib.rs", |
| "src/mem.rs", |
| "src/queue.rs", |
| "src/ring.rs", |
| "src/util.rs", |
| ] |
| |
| deps = [ |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:libc", |
| "//third_party/rust_crates:parking_lot", |
| "//third_party/rust_crates:thiserror", |
| ] |
| |
| with_unit_tests = true |
| } |
| |
| fuchsia_unittest_package("virtio-device-tests") { |
| deps = [ ":virtio-device_test" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":virtio-device-tests" ] |
| } |