ruwebframe 0.1.3

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

/*
	@Title   文件名称: cargohome_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::rubase::rucargo::cargohome::cargohome::CargoHome;

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

const SINGLE_BEAN_NAME: &str = "*rubase::rucargo::cargohome::cargohome:CargoHome:8710c44e-6beb-4ae7-a7af-b12b002aa531:single}";

pub fn find_bean_cargohome() -> Option<Arc<CargoHome>> {
    direg::get_bean::<CargoHome>(SINGLE_BEAN_NAME)
}

pub fn register_bean_cargohome() {
    direg::register_singleton(SINGLE_BEAN_NAME, CargoHome::default);
}


// StructInfo
/*
 {
  "pathFile": "./src\\rubase\\rucargo\\cargohome\\cargohome.rs",
  "pathPkg": "./src\\rubase\\rucargo\\cargohome",
  "structName": "CargoHome",
  "structPkg": "rubase::rucargo::cargohome::cargohome",
  "ifSingle": true,
  "ifDefault": true,
  "structIniFile": "cargohome_init.rs",
  "existIniFile": true,
  "single_bean_name": "*:CargoHome:676250d2-1ce0-4840-9b29-a907ec0c75f1:single",
  "modFile": "./src\\rubase\\rucargo\\cargohome/mod.rs",
  "ifExistsInitMod": false,
  "ifExistsInitUse": false
}
*/