blob: 624b0a45de6e4b033c91b6f21b4bfa30af1d846e [file] [log] [blame]
# 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/rust/rustc_library.gni")
rustc_library("netstack3-base") {
edition = "2021"
with_unit_tests = true
configs -= [ "//build/config/rust/lints:allow_unused_results" ]
sources = [
"src/context.rs",
"src/counters.rs",
"src/inspect.rs",
"src/lib.rs",
"src/time.rs",
"src/time/local_timer_heap.rs",
"src/time/testutil.rs",
]
deps = [
"//src/connectivity/lib/net-types",
"//src/lib/fakealloc",
]
if (!is_host) {
configs += [ "//src/connectivity/network/netstack3:netstack3_configs" ]
}
}
fuchsia_unittest_package("netstack3-core-base-test") {
deps = [ ":netstack3-base_test" ]
}
group("tests") {
testonly = true
deps = [
":netstack3-base_test($host_toolchain)",
":netstack3-core-base-test",
]
}