safety_rules/
lib.rs

1// Copyright (c) The Diem Core Contributors
2// SPDX-License-Identifier: Apache-2.0
3
4// Copyright 2021 Conflux Foundation. All rights reserved.
5// Conflux is free software and distributed under GNU General Public License.
6// See http://www.gnu.org/licenses/
7
8#![forbid(unsafe_code)]
9
10mod configurable_validator_signer;
11mod consensus_state;
12mod counters;
13mod error;
14mod local_client;
15mod logging;
16mod persistent_safety_storage;
17mod process;
18mod remote_service;
19mod safety_rules;
20mod safety_rules_manager;
21mod serializer;
22mod t_safety_rules;
23mod thread;
24
25pub use crate::{
26    consensus_state::ConsensusState, error::Error,
27    persistent_safety_storage::PersistentSafetyStorage, process::Process,
28    safety_rules::SafetyRules, safety_rules_manager::SafetyRulesManager,
29    t_safety_rules::TSafetyRules,
30};
31
32#[cfg(any(test, feature = "fuzzing"))]
33pub mod fuzzing_utils;
34
35#[cfg(any(test, feature = "fuzzing"))]
36pub use crate::fuzzing_utils::fuzzing;
37
38#[cfg(any(test, feature = "testing"))]
39pub mod test_utils;
40
41#[cfg(test)]
42mod tests;