| # 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/components.gni") |
| import("//build/rust/rustc_library.gni") |
| |
| rustc_library("config_encoder") { |
| edition = "2021" |
| with_unit_tests = true |
| sources = [ "src/lib.rs" ] |
| deps = [ |
| "//sdk/fidl/fuchsia.component.decl:fuchsia.component.decl_rust", |
| "//src/lib/dynfidl/rust", |
| "//src/sys/lib/cm_rust", |
| "//third_party/rust_crates:thiserror", |
| ] |
| test_deps = [ |
| ":test.config.encoder_rust", |
| "//src/lib/fidl/rust/fidl", |
| "//src/sys/lib/fidl_fuchsia_component_config_ext", |
| ] |
| } |
| |
| fidl("test.config.encoder") { |
| testonly = true |
| sources = [ "fidl/config_encoder.test.fidl" ] |
| } |
| |
| fuchsia_unittest_package("config_encoder_tests") { |
| deps = [ ":config_encoder_test" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":config_encoder_test($host_toolchain)", |
| ":config_encoder_tests", |
| ] |
| } |