1#![warn(missing_docs)]
2#![cfg_attr(docsrs, feature(doc_cfg))]
3
4macro_rules! cfg_test_tools {
13 ($($item:item)*) => {
14 $(
15 #[cfg(any(test, feature = "test_tools"))]
16 #[cfg_attr(docsrs, doc(cfg(feature = "test_tools")))]
17 $item
18 )*
19 }
20}
21
22pub mod api_version;
23pub mod certificate_chain;
24pub mod crypto_helper;
25pub mod entities;
26pub mod logging;
27pub mod messages;
28pub mod protocol;
29pub mod signable_builder;
30
31cfg_test_tools! {
32 pub mod test_utils;
33}
34
35pub use entities::{CardanoNetwork, MagicId};
36
37pub type StdError = anyhow::Error;
39
40pub type StdResult<T> = anyhow::Result<T, StdError>;
42
43pub const MITHRIL_API_VERSION_HEADER: &str = "mithril-api-version";
45
46pub const MITHRIL_SIGNER_VERSION_HEADER: &str = "signer-node-version";
48
49pub const MITHRIL_AGGREGATOR_VERSION_HEADER: &str = "aggregator-node-version";
51
52pub const MITHRIL_ORIGIN_TAG_HEADER: &str = "mithril-origin-tag";
54
55pub const MITHRIL_CLIENT_TYPE_HEADER: &str = "mithril-client-type";
57
58#[macro_export]
60macro_rules! era_deprecate {
61 ( $comment:literal ) => {};
62}