use crate::encoding::swap_encoder::registry::{Config, SwapEncoderRegistry}; use lazy_static::lazy_static; use std::sync::RwLock; mod builder; mod registry; mod swap_encoder; lazy_static! { pub static ref SWAP_ENCODER_REGISTRY: RwLock = { let config = Config::from_file("config.json").expect("Failed to load configuration file"); RwLock::new(SwapEncoderRegistry::new(config)) }; }