🛡️ Cirious Codex Result
Robust Result & Error Handling Framework
📖 Overview
Cirious Codex Result is a highly optimized, dependency-free foundational library designed not just for error handling, but as a complete Diagnostic & Tracking Framework.
It provides a rich, generic envelope around operations, guaranteeing that every execution—whether successful (Ok) or failed (Err)—generates a detailed diagnostic document containing precise caller locations (file/line), contextual metadata, resolution suggestions, and full execution backtraces.
Designed to be the immutable bedrock for execution tracking within the Cirious ecosystem, prioritizing maximum observability and flawless developer experience.
✨ Features
- Core diagnostic result types (
CodexOkandCodexError). - Automatic caller location tracking via
#[track_caller]. - Native backtrace capturing for deep diagnostics.
- Ergonomic Builder pattern for context and suggestion injection.
- Extension Traits (
.into_codex()) and ergonomic macros (codex_ok!) for frictionless success wrapping.
🚀 Quick Start
Add the following to your Cargo.toml:
[]
= "0.1.0"
And then in your code:
use ;
🚧 Current Status & Roadmap
The architecture is currently being mapped out for the initial v0.2 release. Planned features include:
- Macros:
codex_bail!&codex_ensure!for quick propagation. - Conversions:
Fromtraits for standard errors (e.g.,std::io::Error). - Serde: Optional feature for serialization & deserialization.
- Formatting: Advanced formatters for CLI outputs & structured logs.
- Metadata: Typed values & generic contexts replacing
HashMap.
📜 License
Licensed under either of the following, at your option: