blob: 08fbb0a8de1906b4a0ea57cf5727be0028e584b7 [file] [log] [blame]
# 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/components.gni")
import("//build/rust/rustc_library.gni")
rustc_library("netfilter") {
with_unit_tests = true
edition = "2021"
deps = [
"//sdk/fidl/fuchsia.hardware.network:fuchsia.hardware.network_rust",
"//sdk/fidl/fuchsia.net:fuchsia.net_rust",
"//sdk/fidl/fuchsia.net.filter.deprecated:fuchsia.net.filter.deprecated_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/network/fidl_fuchsia_net_filter_ext",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:pest",
"//third_party/rust_crates:pest_derive",
]
test_deps = [ "//src/connectivity/lib/net-declare" ]
configs -= [ "//build/config/rust/lints:allow_unused_results" ]
sources = [
"src/error.rs",
"src/grammar.rs",
"src/lib.rs",
"src/parser.rs",
"src/parser_deprecated.rs",
"src/util.rs",
]
}
fuchsia_unittest_package("netfilter-tests") {
deps = [ ":netfilter_test" ]
}
group("tests") {
testonly = true
deps = [ ":netfilter-tests" ]
}