| # Copyright 2022 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") |
| |
| rustc_library("version-history") { |
| edition = "2021" |
| with_unit_tests = true |
| |
| deps = [ |
| "proc-macro:version-history-macro", |
| "shared:version-history-shared", |
| ] |
| |
| sources = [ "src/lib.rs" ] |
| |
| configs -= [ "//build/config/rust/lints:allow_unused_results" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":version-history_test($host_toolchain)", |
| "proc-macro:tests", |
| "shared:tests", |
| ] |
| } |