blob: 94e95430e7c6c61b15f42cc85715fdeb35655f4d [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")
rustc_binary("virtio_vsock_test_util") {
name = "virtio_vsock_test_util"
edition = "2021"
if (is_fuchsia) {
deps = [
"//sdk/fidl/fuchsia.vsock:fuchsia.vsock_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
source_root = "src/fuchsia_main.rs"
sources = [ "src/fuchsia_main.rs" ]
} else if (is_linux) {
deps = [
"//third_party/rust_crates:argh",
"//third_party/rust_crates:libc",
]
source_root = "src/linux_main.rs"
sources = [ "src/linux_main.rs" ]
}
}