ruwebframe 0.1.8

a simple webframe for rust actix-web, based on rudi and rbatis.
Documentation
// pkg rulog::rulog

/*
	@Title   文件名称: rulog_init.rs
	@Desp    描述:    依赖自动注入
    @Company 公司:    wcht.akunlong.top
	@Author  作者:    raymond@163.com  时间: 2026-08-17 21:58:57
	@Update  作者:    raymond@163.com  时间: 2026-08-17 21:58:57
*/

// StructInit自动生成,一般不要手动修改

use std::sync::Arc;
use ctor::ctor;

use crate::rudi::dicontainer::direg;
use crate::rulog::RuLog;

#[ctor(unsafe)]
pub fn init() {
    register_bean_rulog();
}

const SINGLE_BEAN_NAME: &str = "*rulog::rulog:RuLog:55534da2-8e3a-4477-9f24-064f45eee3bc:single}";

pub fn find_bean_ru_log() -> Option<Arc<RuLog>> {
    direg::get_bean::<RuLog>(SINGLE_BEAN_NAME)
}

pub fn register_bean_rulog() {
    direg::register_singleton(SINGLE_BEAN_NAME, RuLog::new);
}


// StructInfo
/*
 {
  "pathFile": "./src\\rulog\\ru_log",
  "pathPkg": "./src\\rulog",
  "structName": "RuLog",
  "structPkg": "rulog::rulog",
  "ifSingle": true,
  "ifDefault": false,
  "structIniFile": "ru_log_init.rs",
  "existIniFile": false,
  "single_bean_name": "*:RuLog:b842b2b8-19c3-455e-b57a-a02c4cc02972:single",
  "modFile": "./src\\rulog/mod.rs",
  "ifExistsInitMod": false,
  "ifExistsInitUse": false
}
*/