blob: ae3f8c5ffd246fbb5c85fe0fa99365a4f8f1862c [file] [log] [blame]
# Copyright 2024 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")
group("tests") {
testonly = true
# Target names are chosen to avoid an existing global name clash.
public_deps = [ ":lib_test" ]
}
group("persistence") {
testonly = true
public_deps = [ ":lib" ]
}
rustc_library("lib") {
name = "time_persistence"
edition = "2021"
with_unit_tests = true
sources = [ "src/lib.rs" ]
deps = [
"//sdk/rust/zx",
"//src/lib/fuchsia-runtime",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:log",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
]
test_deps = [ "//third_party/rust_crates:tempfile" ]
}