blob: f9a3d29a9fbb0e3c892db1e4149f193e73870550 [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")
assert(is_host, "core_macros is for use with the host toolchain only")
rustc_macro("lib") {
name = "core_macros"
version = "0.1.0"
edition = "2021"
deps = [
":ffx_core_impl",
"//third_party/rust_crates:syn",
]
sources = [ "src/lib.rs" ]
}
# Implementation needs to be separate for unit tests.
rustc_library("ffx_core_impl") {
version = "0.1.0"
edition = "2021"
with_unit_tests = true
source_root = "src/impl.rs"
deps = [
"//third_party/rust_crates:proc-macro2",
"//third_party/rust_crates:quote",
"//third_party/rust_crates:syn",
]
sources = [ "src/impl.rs" ]
}
group("tests") {
testonly = true
deps = [ ":ffx_core_impl_test" ]
}