use std::path::Path;
use crate::grid::config::TargetConfig;
pub fn load(path: &Path) -> Result<TargetConfig, Box<dyn std::error::Error>> {
let content = std::fs::read_to_string(path)?;
let config: TargetConfig = toml::from_str(&content)?;
Ok(config)
}