Architecture
System design and component organization of aspect-rs.
Crate Structure
aspect-rs/
├── aspect-core/ # Core traits (zero dependencies)
├── aspect-macros/ # Procedural macros
├── aspect-runtime/ # Global aspect registry
├── aspect-std/ # 8 standard aspects
├── aspect-pointcut/ # Pointcut expression parsing
├── aspect-weaver/ # Code weaving logic
└── aspect-rustc-driver/ # Phase 3 automatic weaving
Design Principles
- Zero Runtime Overhead - Compile-time weaving
- Type Safety - Full Rust type checking
- Thread Safety - All aspects
Send + Sync - Composability - Aspects can be combined
- Extensibility - Easy to create custom aspects
See Crate Organization for details.