#![allow(clippy::arc_with_non_send_sync)]
#![allow(non_local_definitions)]
#![allow(async_fn_in_trait)]
use std::path::PathBuf;
use anyhow::anyhow;
pub use lexe_byte_array::ByteArray;
pub use ref_cast::RefCast;
pub use secrecy::{ExposeSecret, Secret};
pub mod api;
pub mod byte_str;
pub mod constants;
pub mod decimal;
pub mod dotenv;
pub mod env;
pub mod ln;
pub mod net;
pub mod or_env;
pub mod releases;
pub mod rng;
pub mod root_seed;
pub mod secp256k1_ctx;
pub mod time;
#[cfg(any(test, feature = "test-utils"))]
pub mod test_utils;
pub fn default_lexe_data_dir() -> anyhow::Result<PathBuf> {
#[allow(deprecated)] let home = std::env::home_dir()
.ok_or_else(|| anyhow!("Could not determine home directory"))?;
Ok(home.join(".lexe"))
}
#[macro_export]
macro_rules! debug_panic_release_log {
($($arg:tt)*) => {
if core::cfg!(debug_assertions) {
core::panic!($($arg)*);
} else {
tracing::error!($($arg)*);
}
};
}