pub mod db;
pub mod error;
#[cfg(feature = "http")]
pub mod http;
mod rt;
pub use error::{Error, Result};
#[cfg(feature = "contracts")]
pub use rt::contract::{
MutLock as ContractLock, Runtime as ContractRuntime, SharedRuntime as SharedContractRuntime,
};
#[cfg(feature = "agents")]
pub use rt::agent::{
MutLock as AgentLock, Runtime as AgentRuntime, SharedRuntime as SharedAgentRuntime,
};
#[cfg(any(feature = "contracts", feature = "agents"))]
pub use rt::*;
pub const CONTRACT_SUB_DB: &str = "contract-db";
pub const AGENT_SUB_DB: &str = "agent-db";
pub const WASM_CODE_SUB_DB: &str = "wasm-code-db";
pub const ACTION_TX_REL_SUB_DB: &str = "rel-tx-action-db";
pub const SUBSCRIPTION_REL_SUB_DB: &str = "rel-subscription-db";
pub const LEDGER_SUB_DB: &str = "ledger-db";
mod log_shim {
#[cfg(all(feature = "tracing", not(feature = "log")))]
pub use tracing::{debug, error, info, trace, warn};
#[cfg(all(feature = "log", not(feature = "tracing")))]
pub use log::{debug, error, info, trace, warn};
#[cfg(any(
all(not(feature = "log"), not(feature = "tracing")),
all(feature = "log", feature = "tracing")
))]
pub use crate::void as trace;
#[cfg(any(
all(not(feature = "log"), not(feature = "tracing")),
all(feature = "log", feature = "tracing")
))]
pub use crate::void as debug;
#[cfg(any(
all(not(feature = "log"), not(feature = "tracing")),
all(feature = "log", feature = "tracing")
))]
pub use crate::void as info;
#[cfg(any(
all(not(feature = "log"), not(feature = "tracing")),
all(feature = "log", feature = "tracing")
))]
pub use crate::void as warn;
#[cfg(any(
all(not(feature = "log"), not(feature = "tracing")),
all(feature = "log", feature = "tracing")
))]
pub use crate::void as error;
#[cfg(any(
all(not(feature = "log"), not(feature = "tracing")),
all(feature = "log", feature = "tracing")
))]
#[macro_export]
macro_rules! void {
($($t:tt)*) => {{
let _ = format_args!($($t)*);
}};
}
}