blob: 272cc9c01779220e1b695f3db2a2bd4f43bc98ee [file] [log] [blame] [edit]
# 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.
import("//build/components.gni")
import("//build/rust/rustc_binary.gni")
group("server") {
testonly = true
deps = [
":hermetic_tests",
":package",
]
}
group("hermetic_tests") {
testonly = true
deps = [ ":calculator-server-rust-next-unittests" ]
}
rustc_binary("bin") {
output_name = "calculator_next_server"
with_unit_tests = true
edition = "2021"
deps = [
"//examples/fidl/calculator/fidl:calculator_rust_next",
"//src/lib/diagnostics/inspect/runtime/rust",
"//src/lib/diagnostics/inspect/rust",
"//src/lib/fidl/rust_next/fidl_next",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
]
sources = [ "src/main.rs" ]
}
fuchsia_component("component") {
component_name = "server"
manifest = "meta/server.cml"
deps = [ ":bin" ]
}
fuchsia_package("package") {
package_name = "server"
deps = [ ":component" ]
}
fuchsia_unittest_package("calculator-server-rust-next-unittests") {
deps = [ ":bin_test" ]
}