Decrust-Promac-Runtime 🦀⚙️
Runtime Support for Decrust Procedural Macros
Decrust-Promac-Runtime provides the essential runtime support and utilities needed by the Decrust procedural macros. This crate contains the runtime components that enable the decrust! macro to perform its advanced error handling and autocorrection capabilities.
🚀 Quick Start
This crate is typically used indirectly through the main decrust crate, but can be used directly for advanced scenarios:
use ;
// Runtime support for macro-generated code
🎯 Core Components
1. Macro Result Types 📊
Specialized result types that support the advanced features of the decrust! macro.
use ;
// Result type that supports retry logic
2. Runtime Error Handling ⚡
Error types specifically designed for macro-generated code with enhanced debugging information.
use DecrustMacroError;
// Specialized error types for macro operations
3. Macro Utilities 🛠️
Helper functions and utilities used by the procedural macros during code generation.
use ;
// Utilities for macro-generated code
let context = generate_error_context;
let suggestion = format_suggestion;
🏗️ Architecture
This crate provides runtime support for:
- Macro Result Handling - Specialized result types for macro operations
- Error Context Generation - Runtime error context creation
- Retry Logic Support - Infrastructure for automatic retry mechanisms
- Circuit Breaker Integration - Runtime support for circuit breaker patterns
- Validation Helpers - Runtime validation utilities
🔧 Integration
This crate is automatically included when you use the main decrust crate:
[]
= "1.2" # Includes decrust-promac-runtime automatically
For direct usage (advanced scenarios):
[]
= "1.2"
📚 Features
- Lightweight Runtime - Minimal overhead for macro-generated code
- Error Context - Rich error information for debugging
- Retry Support - Built-in retry mechanism infrastructure
- Circuit Breaker - Runtime circuit breaker state management
- Validation - Runtime validation helpers
🎨 Usage Patterns
Macro-Generated Error Handling
use ;
// This is typically generated by the decrust! macro
Custom Runtime Integration
use ;
// Custom integration with macro runtime
🛡️ Licensing
This project is licensed under the Business Source License 1.1 (BSL 1.1).
- ✅ Non-production use is FREE (development, testing, academic, personal)
- 💰 Commercial/production use requires a paid license from ArcMoon Studios
- 📧 Contact: LordXyn@proton.me for commercial licensing inquiries
Change Date: 2029-05-25 | Change License: GNU GPL v3
Made with ❤️ by ArcMoon Studios