blob: 01d1835921dc570f83938104ea55724ed34de4dc [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("//build/test/test_package.gni")
rustc_macro("net-declare-macros") {
source_root = "src/macros.rs"
version = "0.1.0"
edition = "2018"
deps = [
"//third_party/rust_crates:proc-macro-hack",
"//third_party/rust_crates:proc-macro2",
"//third_party/rust_crates:quote",
"//third_party/rust_crates:syn",
]
}
rustc_library("net-declare") {
version = "0.1.0"
edition = "2018"
with_unit_tests = true
deps = [
":net-declare-macros",
"//third_party/rust_crates:proc-macro-hack",
]
test_deps = [ "//sdk/fidl/fuchsia.net:fuchsia.net-rustc" ]
}
unittest_package("net-declare-tests") {
deps = [ ":net-declare_test" ]
tests = [
{
name = "net_declare_lib_test"
environments = [ emu_env ]
},
]
}
group("tests") {
testonly = true
deps = [ ":net-declare-tests" ]
}