Skip to content
Utilities for dealing with source code locations and pretty diagnostic formatting
Branch: master
Clone or download
brendanzab Merge pull request #55 from oberien/codemap-str
Make CodeMap generic over AsRef<str>
Latest commit 239c600 Mar 29, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
codespan-lsp
codespan-reporting
codespan Remove trait bound from struct, only have it at impl Mar 28, 2019
tools
.gitignore
.travis.yml
Cargo.toml
LICENSE
README.md
rustfmt.toml Add rustfmt.toml Feb 20, 2018

README.md

codespan

Build Status Crates.io Docs.rs Gitter

Utilities for dealing with source code locations.

Supporting crates

Codespan also allows you to easily set up pretty diagnostic formatting for command line interfaces via the codespan-reporting crate. This will give you output that looks like the following:

screenshot

Rustdoc

In the future we would also like to make it easy for language developers to set up language server protocols and interface with browser-embedded editors like Ace or Monaco.

Codespan in use

Codespan is used in the following projects:

Acknowledgments

Inspired by rustc's error reporting infrastructure and the codemap crate

You can’t perform that action at this time.