Skip to main content

tsoracle_server/
lib.rs

1//
2//  ░▀█▀░█▀▀░█▀█░█▀▄░█▀█░█▀▀░█░░░█▀▀
3//  ░░█░░▀▀█░█░█░█▀▄░█▀█░█░░░█░░░█▀▀
4//  ░░▀░░▀▀▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀▀▀░▀▀▀
5//
6//  tsoracle — Distributed Timestamp Oracle
7//
8//  Copyright (c) 2026 Prisma Risk
9//  Licensed under the Apache License, Version 2.0
10//  https://github.com/prisma-risk/tsoracle
11//
12
13#![doc = include_str!("../README.md")]
14// Panic policy (see CONTRIBUTING.md). `cfg_attr(not(test), ...)` skips the lint
15// for the lib's own unit tests; integration tests are separate compilation units.
16#![cfg_attr(not(test), warn(clippy::unwrap_used, clippy::expect_used))]
17
18#[macro_use]
19mod failpoint;
20mod fence;
21mod leader_hint;
22mod server;
23mod service;
24
25pub mod docs;
26
27pub use server::{BuildError, Server, ServerBuilder, ServerError, ServingState};
28
29#[cfg(any(test, feature = "test-fakes"))]
30pub mod test_fakes;
31
32#[cfg(any(test, feature = "test-support"))]
33pub mod test_support;
34
35#[doc(hidden)]
36pub use leader_hint::decode_leader_hint as __priv_decode_leader_hint;