epoch/lib.rs
1// Copyright 2021 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#![deny(missing_docs)]
6
7//! Wrapper around (de)serializing an epoch.json file. Although the underlying implementation is
8//! fairly straightforward, we extract this into a library so that the library serves as the "source
9//! of truth" for all valid epoch.json formats. Currently, there is only one format documented in
10//! [RFC-0071](https://fuchsia.dev/fuchsia-src/contribute/governance/rfcs/0071_ota_backstop).
11//! If we add a new format (e.g. change the version field) in the future, this library will ensure
12//! that all clients are aligned on format changes.
13
14mod epoch;
15
16pub use crate::epoch::EpochFile;