15 lines
427 B
Rust
15 lines
427 B
Rust
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<SwapEncoderRegistry> = {
|
|
let config = Config::from_file("config.json").expect("Failed to load configuration file");
|
|
RwLock::new(SwapEncoderRegistry::new(config))
|
|
};
|
|
}
|