ruwebframe 0.1.3

a simple webframe for rust actix-web, based on rudi and rbatis.
Documentation
use crate::rubase::ruconst::ruconst; 
use crate::rubase::rutils::{fileutils};
use crate::rubase::{BaseEntitySingle}; 
use std::env;
use redis::ProtocolVersion::RESP2;

static BASE_PATH: &str = "/usr/local/bin";
#[derive(Default)]
pub struct RuFile {}
impl BaseEntitySingle for RuFile {}

fn find_config_path() -> String {
    let p=fileutils::current_dir().unwrap();
   
    let files = fileutils::find_dir(p.as_path().to_str().unwrap(), "config");
 
    if files.is_empty() {
        return "".to_string();
    }
    return files.first().unwrap().parent().unwrap().to_str().unwrap().to_string();
}
fn find_config_exist () -> String {
     let mut dir=find_config_path();
    if dir.is_empty() {
        return dir;
    }
   
    return dir;
}
pub fn get_config_path ()-> String {
    find_base_path()+"/config"
}
pub fn find_base_path() -> String {
    if env::var_os(ruconst::IchubBasePath).is_some() {
        return env::var_os(ruconst::IchubBasePath)
            .unwrap()
            .into_string()
            .unwrap();
    }
    let base = find_config_exist();
    //  unsafe { env::set_var(ruconst::IchubBasePath, s) }

    base
}