codespan

Data structures for tracking locations in source code

21 releases

0.11.1 Feb 25, 2021
0.11.0 Nov 29, 2020
0.9.5 Jun 24, 2020
0.9.2 Mar 29, 2020
0.1.2 May 7, 2018

#126 in HTTP server

Download history 31707/week @ 2024-06-19 31008/week @ 2024-06-26 25848/week @ 2024-07-03 27038/week @ 2024-07-10 29074/week @ 2024-07-17 30076/week @ 2024-07-24 28689/week @ 2024-07-31 29615/week @ 2024-08-07 31335/week @ 2024-08-14 30180/week @ 2024-08-21 29048/week @ 2024-08-28 33845/week @ 2024-09-04 32082/week @ 2024-09-11 29521/week @ 2024-09-18 35206/week @ 2024-09-25 27746/week @ 2024-10-02

130,755 downloads per month
Used in 249 crates (58 directly)

Apache-2.0

130KB
2K SLoC

codespan

Continuous integration Crates.io Docs.rs Matrix

Utilities for dealing with source code locations.


lib.rs:

Utilities for working with source code and printing nicely formatted diagnostic information like warnings and errors.

Optional Features

Extra functionality is accessible by enabling feature flags. The features currently available are:

  • serialization - Adds Serialize and Deserialize implementations for use with serde

Dependencies

~1.1–8MB
~59K SLoC