Skip to main content

espresso_types/
lib.rs

1pub mod v0;
2
3// Re-export the latest major version compatibility types.
4pub use v0::*;
5
6pub mod eth_signature_key;
7mod reference_tests;
8
9/// Panics when compiled without the `node` feature. Node binaries call this at
10/// startup so a build without consensus support fails immediately instead of
11/// at the first gated consensus call (header validation or proposal, epoch
12/// root update, L1 deposit fetch). The node binaries also require the feature
13/// through their Cargo dependency on this crate, so this only fires if that
14/// declaration is removed.
15pub fn assert_node_feature() {
16    #[cfg(not(feature = "node"))]
17    panic!("espresso-types was compiled without the `node` feature");
18}