百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

codespan

> 编程语言
开源

为基于文本的编程语言提供美观的诊断报告。

1.3K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

为基于文本的编程语言提供美观的诊断报告。

codespan-reporting

Continuous integration Crates.io Docs.rs Matrix

Beautiful diagnostic reporting for text-based programming languages.

Languages like Rust and Elm already support beautiful error reporting output, but it can take a significant amount work to implement this for new programming languages! The codespan-reporting crate aims to make beautiful error diagnostics easy and relatively painless for everyone!

We're still working on improving the crate to help it support broader use cases, and improving the quality of the diagnostic rendering, so stay tuned for updates and please give us feedback if you have it. Contributions are also very welcome!

Example

…

Running the CLI example

To get an idea of what the colored CLI output looks like, clone the repository and run the following shell command:

bash
cargo run --example term

More examples of using codespan-reporting can be found in the examples directory.

Projects using codespan-reporting

codespan-reporting is currently used in the following projects:

  • cargo-deny
  • cargo-about
  • CXX
  • full_moon
  • Gleam
  • Gluon
  • MDBook LinkCheck
  • mos
  • Pikelet
  • Naga
  • Spade

... any many more

Alternatives to codespan-reporting

There are a number of alternatives to codespan-reporting, including:

  • annotate-snippets
  • codemap
  • language-reporting (a fork of codespan)

These are all ultimately inspired by rustc's excellent error reporting infrastructure.

Contributing

A guide to contributing to codespan-reporting can be found here.

Code of Conduct

Please note that this project is released with a Code of Conduct. By participating in this project you agree to abide by its terms.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustdiagnosticserror-reportingprogramming-languagesrust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言