blob: d3a3080a496c79e0d5eecafb3b6b740003cb9d28 [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/rust/rustc_library.gni")
import("//build/rust/rustc_macro.gni")
import("//src/sys/build/fuchsia_unittest_package.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" ]
}
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" ]
}
fuchsia_unittest_package("net-declare-tests") {
deps = [ ":net-declare_test" ]
executable_path = "bin/net_declare_lib_test"
}
group("tests") {
testonly = true
deps = [ ":net-declare-tests" ]
}