| # 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/package.gni") |
| import("//build/rust/rustc_library.gni") |
| import("//build/test/test_package.gni") |
| |
| rustc_library("netfilter") { |
| with_unit_tests = true |
| edition = "2018" |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.net:fuchsia.net-rustc", |
| "//sdk/fidl/fuchsia.net.filter:fuchsia.net.filter-rustc", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:pest", |
| "//third_party/rust_crates:pest_derive", |
| "//third_party/rust_crates:thiserror", |
| ] |
| |
| sources = [ |
| "src/error.rs", |
| "src/lib.rs", |
| "src/parser.rs", |
| ] |
| } |
| |
| test_package("netfilter_tests") { |
| deps = [ ":netfilter_test" ] |
| |
| tests = [ |
| { |
| name = "netfilter_lib_test" |
| }, |
| ] |
| } |