ruwebframe 0.1.3

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-14 14:01:00
	@Update  作者:    raymond@163.com  时间: 2026-08-14 14:01:00
*/

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

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

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

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

const SINGLE_BEAN_NAME: &str = "*rulog::rulog:RuLog:8fb78aaa-ef90-4b87-85ac-bd1272078565:single}";

pub fn find_bean_rulog() -> 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\\rulog.rs",
  "pathPkg": "./src\\rulog",
  "structName": "RuLog",
  "structPkg": "rulog::rulog",
  "ifSingle": true,
  "ifDefault": false,
  "structIniFile": "rulog_init.rs",
  "existIniFile": true,
  "single_bean_name": "*:RuLog:8a8e8416-786d-49ee-8956-071571db97f4:single",
  "modFile": "./src\\rulog/mod.rs",
  "ifExistsInitMod": false,
  "ifExistsInitUse": false
}
*/