blob: e8d361aa163030c90fb5684392c252244af76609 [file] [log] [blame]
# Copyright 2023 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("socket_parsing") {
name = "socket_parsing"
with_unit_tests = true
edition = "2024"
deps = [
"//sdk/rust/zx",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:thiserror",
]
sources = [ "src/lib.rs" ]
test_deps = [ "//src/lib/fuchsia" ]
}
fuchsia_component("socket_parsing_test_component") {
testonly = true
deps = [ ":socket_parsing_test" ]
component_name = "socket_parsing_tests"
manifest = "meta/socket_parsing_tests.cml"
}
fuchsia_test_package("socket_parsing_tests") {
test_components = [ ":socket_parsing_test_component" ]
deps = [ ":socket_parsing_test_component" ]
}
group("tests") {
testonly = true
deps = [ ":socket_parsing_tests" ]
}