add robots txt detection

This commit is contained in:
2025-10-09 15:26:36 +08:00
parent 10b89aee17
commit d660f25fb1
8 changed files with 1268 additions and 16 deletions

12
src/constants.rs Normal file
View File

@@ -0,0 +1,12 @@
use std::path::PathBuf;
use directories::BaseDirs;
use lazy_static::lazy_static;
const APP_DIR_NAME: &str = "sus_manager";
lazy_static!(
static ref BASE_DIRS: BaseDirs = BaseDirs::new().unwrap();
pub static ref APP_CONFIG_DIR: PathBuf = BASE_DIRS.config_dir().to_path_buf()
.join(APP_DIR_NAME);
pub static ref APP_DATA_DIR: PathBuf = BASE_DIRS.data_dir().to_path_buf()
.join(APP_DIR_NAME);
);