injection 0.1.1

A lightweight dependency injection container for Rust applications
Documentation
// 组件模块:定义 Component trait 和 Configure trait
pub mod component;
/// 配置模块:提供全局配置加载和管理功能
#[cfg(feature = "config")]
pub mod config;
/// 容器模块:实现依赖注入容器的核心功能
pub mod container;
/// 定义模块:定义 Bean 和 BeanDefinition 等核心数据结构
pub mod definition;
// pub mod router;
/// 工具模块:提供 JSON 合并等辅助功能
mod utils;

/// 导出 Component trait,用于标记可被注入的组件
pub use crate::component::Component;
/// 导出 Configure trait,用于标记可序列化的配置结构体
#[cfg(feature = "config")]
pub use crate::component::Configure;
/// 导出注入容器,提供依赖获取和容器管理功能
pub use crate::container::InjectionContainer;
/// 导出 inventory 宏,用于收集 Bean 定义
pub use inventory::*;
/// 导出所有宏定义(Component、Service、configuration、init)
pub use injection_macros::*;