codespan

Data structures for tracking locations in source code

6 releases

0.2.1 Feb 26, 2019
0.2.0 Oct 11, 2018
0.1.3 Aug 20, 2018
0.1.2 May 7, 2018
0.1.1 Apr 16, 2018

#56 in Value formatting

Download history 199/week @ 2018-11-13 78/week @ 2018-11-20 198/week @ 2018-11-27 115/week @ 2018-12-04 107/week @ 2018-12-11 80/week @ 2018-12-18 217/week @ 2018-12-25 649/week @ 2019-01-01 87/week @ 2019-01-08 111/week @ 2019-01-15 291/week @ 2019-01-22 372/week @ 2019-01-29 148/week @ 2019-02-05 264/week @ 2019-02-12 138/week @ 2019-02-19

905 downloads per month
Used in 16 crates (12 directly)

Apache-2.0

47KB
1K SLoC


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
  • memory_usage - Adds HeapSizeOf implementations for use with the heapsize crate

Dependencies

~1MB
~12K SLoC