Expand description
Structured error_stack interoperability for diagprint.
This crate is the first ecosystem adapter built on
diagprint_bridge. It keeps error-stack-specific traversal and privacy
policy here while delegating normalized diagnostic/report/relationship
assembly to the reusable bridge SDK.
Stable single-context error_stack::Report<C> and grouped
Report<[C]> values are both supported.
§Structural conversion
The adapter uses error_stack::Frame::sources and
error_stack::Frame::kind directly. It never parses the rendered
Display or Debug representation of a report.
Context frames become diagnostic instances. Attachment frames are traversal-transparent so source topology survives across attachments.
§Attachment privacy
Attachment content is omitted by default. Call
ErrorStackBridge::with_attachment_policy with
ErrorStackAttachmentPolicy::PrintableText to intentionally retain the
Display text of printable attachments as diagnostic notes.
Opaque attachment values are never exported by this adapter.