mirror of
https://github.com/hinto-janai/cuprate.git
synced 2025-01-24 11:26:03 +00:00
eead49beb0
* cargo.toml: transfer existing lints * rpc/interface: lints * rpc/json-rpc: lints * rpc/types: lints * storage/blockchain: lints * rpc/types: fix lints * cargo.toml: fix lint group priority * storage/blockchain: fix lints * fix misc lints * storage/database: fixes * storage/txpool: opt in lints + fixes * types: opt in + fixes * helper: opt in + fixes * types: remove borsh * rpc/interface: fix test * test fixes * database: fix lints * fix lint * tabs -> spaces * blockchain: `config/` -> `config.rs`
31 lines
1.3 KiB
Rust
31 lines
1.3 KiB
Rust
#![doc = include_str!("../README.md")]
|
|
// `proptest` needs this internally.
|
|
#![cfg_attr(any(feature = "proptest"), allow(non_local_definitions))]
|
|
// Allow some lints when running in debug mode.
|
|
#![cfg_attr(debug_assertions, allow(clippy::todo, clippy::multiple_crate_versions))]
|
|
|
|
//---------------------------------------------------------------------------------------------------- Public API
|
|
// Import private modules, export public types.
|
|
//
|
|
// Documentation for each module is located in the respective file.
|
|
|
|
mod block_complete_entry;
|
|
mod hard_fork;
|
|
mod transaction_verification_data;
|
|
mod types;
|
|
|
|
pub use block_complete_entry::{BlockCompleteEntry, PrunedTxBlobEntry, TransactionBlobs};
|
|
pub use hard_fork::{HardFork, HardForkError};
|
|
pub use transaction_verification_data::{
|
|
CachedVerificationState, TransactionVerificationData, TxVersion,
|
|
};
|
|
pub use types::{
|
|
AltBlockInformation, Chain, ChainId, ExtendedBlockHeader, OutputOnChain,
|
|
VerifiedBlockInformation, VerifiedTransactionInformation,
|
|
};
|
|
|
|
//---------------------------------------------------------------------------------------------------- Feature-gated
|
|
#[cfg(feature = "blockchain")]
|
|
pub mod blockchain;
|
|
|
|
//---------------------------------------------------------------------------------------------------- Private
|