lib-misc-utils · crate
codespan-reporting
Kinogaki's own codespan-reporting, published under the crates.io name so the frozen naga resolves to it through [patch.crates-io].
- Repository
- lib-misc-utils (kinogaki/lib-misc-utils)
- Folder
libs/lib-misc-utils/crates/codespan-reporting- Source
- 4 files, 623 lines
- Tests
- 1 file, 124 lines
What it is
Kinogaki's own codespan-reporting, published under the crates.io name so the frozen naga resolves to it through [patch.crates-io]. It is not upstream codespan-reporting: it renders naga's shader diagnostics (one message, labelled source spans, notes) as plain text in codespan's rich layout:
No colors and no terminal handling. Columns count characters, with tabs expanded to Config::tab_width spaces (shader sources are ASCII, so no Unicode width tables are needed).
Depends on
None.
Third-party
None.
Used by
None.
Third-party crates using it
Modules
diagnosticDiagnostics: a severity, a message, labelled spans of source and notes.143 linesfilesSource files: names, text and line lookup.159 linestermRendering diagnostics as text.301 lines
Public types and traits
By module: 10 public types and traits in 3 modules
diagnostic DiagnosticLabelLabelStyleSeverity
files ErrorFilesLocationSimpleFile
term ConfigDisplayStyle
Besides these, 4 public functions at module level.
