blob: e2b5b866d115d3c73bf499a4208bc99d57eb162a [file]
# Copyright 2025 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.
assert(is_host, "The USB driver API should only be built for the host OS")
group("usb_driver_api") {
public_deps = [ ":lib" ]
}
group("tests") {
testonly = true
deps = [ ":lib_test" ]
}
## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ##
#
# ________ _________ ________ ________
# |\ ____\|\___ ___\\ __ \|\ __ \
# \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
# \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
# \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
# ____\_\ \ \ \__\ \ \_______\ \__\
# |\_________\ \|__| \|_______|\|__|
# \|_________|
#
#
# AUTO-GENERATED - DO NOT EDIT
#
# The targets below are auto-generated based on the targets defined in the
# BUILD.bazel file from the same directory. If you made changes to targets in
# Bazel, instead of editing this file manually, run:
#
# > fx bazel2gn
#
# Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and
# rerun bazel2gn.
import("//build/tools/bazel2gn/bazel_migration.gni")
if (is_host) {
rustc_library("lib") {
sources = [ "src/lib.rs" ]
crate_name = "usb_driver_api"
edition = "2024"
test_deps = [
"//src/developer/ffx/lib/metrics:lib",
"//src/developer/ffx/lib/usb_vsock_host",
"//src/developer/ffx/tools/usb_driver/impl:lib",
"//src/developer/lib/usb_vsock",
"//src/lib/fuchsia",
"//third_party/rust_crates:tempfile",
]
with_unit_tests = true
deps = [
"//src/developer/ffx/fidl/usb:fuchsia.ffx.usb_rust_common",
"//src/lib/fidl/rust/fidl",
"//src/lib/fidl/rust/fidl_message",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:thiserror",
"//third_party/rust_crates:tokio",
]
}
}