blob: 30de9b9a58f94930883df9b8a60d604fb58249b0 [file] [log] [blame]
# 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/rust/rustc_library.gni")
assert(is_host, "rcs is for use with the host toolchain only")
rcs_deps = [
"//src/developer/ffx/fidl:fuchsia.developer.ffx_rust",
"//src/developer/ffx/lib/errors:lib",
"//src/developer/ffx/lib/timeout:lib",
"//src/lib/fidl/rust/fidl",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:thiserror",
]
rcs_sources = [
"src/lib.rs",
"src/toolbox.rs",
]
rustc_library("lib") {
name = "rcs"
edition = "2021"
with_unit_tests = true
deps = rcs_deps + [
"//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust",
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/fidl/fuchsia.kernel:fuchsia.kernel_rust",
"//sdk/fidl/fuchsia.overnet.protocol:fuchsia.overnet.protocol_rust",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust",
"//src/connectivity/overnet/lib/core",
"//src/lib/fuchsia-async",
"//src/sys/lib/moniker",
]
sources = rcs_sources
}
rustc_library("lib_fdomain") {
name = "rcs_fdomain"
edition = "2021"
with_unit_tests = true
deps = rcs_deps + [
"//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust_fdomain",
"//sdk/fidl/fuchsia.io:fuchsia.io_rust_fdomain",
"//sdk/fidl/fuchsia.kernel:fuchsia.kernel_rust_fdomain",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust_fdomain",
"//src/lib/fdomain/client",
]
features = [ "fdomain" ]
sources = rcs_sources
}
group("rcs") {
testonly = true
public_deps = [ ":lib" ]
}
group("tests") {
testonly = true
deps = [
":lib_fdomain_test",
":lib_test",
]
}