Skip to main content

linera_client/
lib.rs

1// Copyright (c) Zefchain Labs, Inc.
2// SPDX-License-Identifier: Apache-2.0
3
4//! This module provides a convenient library for writing a Linera client application.
5
6#![recursion_limit = "512"]
7#![deny(missing_docs)]
8#![allow(async_fn_in_trait)]
9
10/// Listens for notifications on the chains tracked by a client and reacts to them.
11pub mod chain_listener;
12/// The context bundling the wallet, storage, and configuration a client operates with.
13pub mod client_context;
14pub use client_context::ClientContext;
15/// Prometheus metrics collected by the client.
16#[cfg(not(web))]
17pub mod client_metrics;
18/// Command-line options shared by the client binaries.
19pub mod client_options;
20pub use client_options::Options;
21/// Configuration types for wallets, committees, and validator servers.
22pub mod config;
23mod error;
24/// Assorted parsing and command-line helper utilities.
25pub mod util;
26
27/// Tooling for running throughput benchmarks against a network.
28#[cfg(not(web))]
29pub mod benchmark;
30
31#[cfg(test)]
32mod unit_tests;
33
34pub use error::Error;