1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
use std::path::Path; use std::fs::File; pub fn init() { } fn init_config() { let config_path = "./config.toml"; if !Path::new(config_path).try_exists().unwrap() { File::create("./config.toml").unwrap(); } } fn init_db() { }