linera_core/
lib.rs

1// Copyright (c) Facebook, Inc. and its affiliates.
2// Copyright (c) Zefchain Labs, Inc.
3// SPDX-License-Identifier: Apache-2.0
4
5//! This module defines the core Linera protocol.
6
7#![recursion_limit = "256"]
8// We conditionally add autotraits to the traits here.
9#![allow(async_fn_in_trait)]
10
11mod chain_worker;
12pub mod client;
13pub use client::Client;
14pub mod data_types;
15pub mod join_set_ext;
16mod local_node;
17pub mod node;
18pub mod notifier;
19mod remote_node;
20#[cfg(with_testing)]
21#[path = "unit_tests/test_utils.rs"]
22pub mod test_utils;
23pub mod worker;
24
25pub(crate) mod updater;
26mod value_cache;
27
28pub use local_node::LocalNodeError;
29pub use updater::DEFAULT_QUORUM_GRACE_PERIOD;
30
31pub use crate::join_set_ext::{JoinSetExt, TaskHandle};
32
33pub mod environment;
34pub use environment::{
35    wallet::{self, Wallet},
36    Environment,
37};
38
39/// The maximum number of entries in a `received_log` included in a `ChainInfo` response.
40// TODO(#4638): Revisit the number.
41pub const CHAIN_INFO_MAX_RECEIVED_LOG_ENTRIES: usize = 20_000;