ruwebframe 0.1.8

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);
}