ruwebframe 0.1.6

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

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

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

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

use crate::rudi::dicontainer::direg;
use crate::rudi::di_example::DiExample;

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

const SINGLE_BEAN_NAME: &str = "*rudi::diexample:DiExample:ca4f14fa-5015-44f0-a48b-4a0bcfd2f78c:single}";

pub fn find_bean_di_example() -> Option<Arc<DiExample>> {
    direg::get_bean::<DiExample>(SINGLE_BEAN_NAME)
}

pub fn register_bean_diexample() {
    direg::register_singleton(SINGLE_BEAN_NAME, DiExample::new);
}


// StructInfo
/*
 {
  "pathFile": "./src\\rudi\\di_example",
  "pathPkg": "./src\\rudi",
  "structName": "DiExample",
  "structPkg": "rudi::diexample",
  "ifSingle": true,
  "ifDefault": false,
  "structIniFile": "di_example_init.rs",
  "existIniFile": false,
  "single_bean_name": "*:DiExample:457a8d37-43c4-4958-b206-ca1bb48ef788:single",
  "modFile": "./src\\rudi/mod.rs",
  "ifExistsInitMod": false,
  "ifExistsInitUse": false
}
*/