blob: 4a1e58c95cbe75bb42cc63bb8df528dccbd833e6 [file] [log] [blame]
# Copyright 2020 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")
import("//build/rust/rustc_macro.gni")
rustc_macro("net-declare-macros") {
source_root = "src/macros.rs"
version = "0.1.0"
edition = "2018"
deps = [
"//third_party/rust_crates:proc-macro2",
"//third_party/rust_crates:quote",
"//third_party/rust_crates:syn",
"//third_party/rust_crates:thiserror",
]
sources = [ "src/macros.rs" ]
configs -= [ "//build/config/rust:allow_unused_results" ]
}
rustc_library("net-declare") {
version = "0.1.0"
edition = "2018"
with_unit_tests = true
deps = [ ":net-declare-macros" ]
test_deps = [ "//sdk/fidl/fuchsia.net:fuchsia.net-rustc" ]
sources = [ "src/lib.rs" ]
configs -= [ "//build/config/rust:allow_unused_results" ]
}
fuchsia_unittest_package("net-declare-tests") {
deps = [ ":net-declare_test" ]
}
group("tests") {
testonly = true
deps = [ ":net-declare-tests" ]
}