| # Copyright 2024 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/fidl/fidl.gni") |
| import("//build/rust/rustc_library.gni") |
| import("//build/rust/rustc_test.gni") |
| |
| rustc_library("fidl_next") { |
| edition = "2021" |
| sources = [ "src/lib.rs" ] |
| deps = [ |
| "//src/lib/fidl/rust_next/fidl_next_bind", |
| "//src/lib/fidl/rust_next/fidl_next_codec", |
| "//src/lib/fidl/rust_next/fidl_next_protocol", |
| ] |
| |
| with_unit_tests = true |
| |
| # NOTE: this library is still experimental |
| visibility = [ |
| "//:developer_universe_packages", |
| "//examples/*", |
| "//sdk/fidl/*", |
| "//sdk/lib/driver/*", |
| "//src/lib/fdomain/*", |
| "//src/lib/fidl/rust_next/*", |
| "//src/lib/fuchsia-component/*", |
| "//src/tests/fidl/conformance_suite:*", |
| "//tools/fidl/fidlc/testdata/*", |
| "//tools/fidl/fidlgen_rust_next/*", |
| ] |
| } |
| |
| fuchsia_unittest_package("fidl_next_test_package") { |
| deps = [ ":fidl_next_test" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":fidl_next_test($host_toolchain)", |
| # TODO: fix and re-enable device-side tests. |
| # ":fidl_next_test_package", |
| ] |
| } |