| # Copyright 2019 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/bazel/bazel_test_suite.gni") | |
| import("//build/rust/rustc_library.gni") | |
| bazel_test_suite("bazel_tests") { | |
| target_tests = | |
| [ "//src/lib/fidl_codec/rust:fidl_codec_rust_conformance_tests" ] | |
| host_tests = | |
| [ "//src/lib/fidl_codec/rust:fidl_codec_rust_conformance_tests_bin" ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ | |
| ":bazel_tests", | |
| ":fidl_codec_fdomain_test", | |
| ":fidl_codec_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") | |
| rustc_library("fidl_codec") { | |
| sources = [ | |
| "src/decode.rs", | |
| "src/encode.rs", | |
| "src/error.rs", | |
| "src/handle.rs", | |
| "src/handle/classic.rs", | |
| "src/lib.rs", | |
| "src/library.rs", | |
| "src/transaction.rs", | |
| "src/util.rs", | |
| "src/value.rs", | |
| ] | |
| features = [ "classic" ] | |
| edition = "2024" | |
| proc_macro_deps = [ "//third_party/rust_crates:serde_derive" ] | |
| visibility = [ | |
| ":*", | |
| "//src/*", | |
| ] | |
| with_unit_tests = true | |
| deps = [ | |
| "//sdk/rust/fidl-data-zx", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fidl/rust_constants", | |
| "//third_party/rust_crates:bitflags", | |
| "//third_party/rust_crates:nom", | |
| "//third_party/rust_crates:serde", | |
| "//third_party/rust_crates:serde_json", | |
| "//third_party/rust_crates:thiserror", | |
| ] | |
| } | |
| rustc_library("fidl_codec_fdomain") { | |
| sources = [ | |
| "src/decode.rs", | |
| "src/encode.rs", | |
| "src/error.rs", | |
| "src/handle.rs", | |
| "src/handle/fdomain.rs", | |
| "src/lib.rs", | |
| "src/library.rs", | |
| "src/transaction.rs", | |
| "src/util.rs", | |
| "src/value.rs", | |
| ] | |
| features = [ "fdomain" ] | |
| edition = "2024" | |
| proc_macro_deps = [ "//third_party/rust_crates:serde_derive" ] | |
| visibility = [ | |
| ":*", | |
| "//src/*", | |
| ] | |
| with_unit_tests = true | |
| deps = [ | |
| "//sdk/rust/fidl-data-zx", | |
| "//src/lib/fdomain/client", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fidl/rust_constants", | |
| "//third_party/rust_crates:bitflags", | |
| "//third_party/rust_crates:nom", | |
| "//third_party/rust_crates:serde", | |
| "//third_party/rust_crates:serde_json", | |
| "//third_party/rust_crates:thiserror", | |
| ] | |
| } | |
| rustc_library("fidl_codec_pure") { | |
| sources = [ | |
| "src/decode.rs", | |
| "src/encode.rs", | |
| "src/error.rs", | |
| "src/handle.rs", | |
| "src/handle/pure.rs", | |
| "src/lib.rs", | |
| "src/library.rs", | |
| "src/transaction.rs", | |
| "src/util.rs", | |
| "src/value.rs", | |
| ] | |
| features = [ "pure" ] | |
| edition = "2024" | |
| proc_macro_deps = [ "//third_party/rust_crates:serde_derive" ] | |
| visibility = [ | |
| ":*", | |
| "//src/*", | |
| ] | |
| with_unit_tests = true | |
| deps = [ | |
| "//sdk/rust/fidl-data-zx", | |
| "//src/lib/fidl/rust_constants", | |
| "//third_party/rust_crates:bitflags", | |
| "//third_party/rust_crates:nom", | |
| "//third_party/rust_crates:serde", | |
| "//third_party/rust_crates:serde_json", | |
| "//third_party/rust_crates:thiserror", | |
| ] | |
| } |