caretta-sync/lazy-supplements/src/config/mod.rs

18 lines
369 B
Rust
Raw Normal View History

2025-05-24 06:11:00 +09:00
mod node;
2025-05-30 09:26:47 +09:00
use std::path::Path;
use crate::error::Error;
2025-06-01 16:29:35 +09:00
pub use node::{ NodeConfig, RawNodeConfig };
2025-05-30 09:26:47 +09:00
use serde::{Deserialize, Serialize};
2025-06-01 15:18:17 +09:00
pub use crate::global::{
2025-05-24 09:17:45 +09:00
DEFAULT_LISTEN_IPS,
DEFAULT_PORT,
};
2025-05-30 09:26:47 +09:00
use tokio::{fs::File, io::{AsyncReadExt, AsyncWriteExt}};
#[derive(Debug, Deserialize, Serialize)]
pub struct PartialConfig {
node: Option<NodeConfig>,
}
2025-05-24 09:17:45 +09:00