7 releases

0.2.0 Nov 8, 2024
0.1.0 Apr 24, 2024
0.0.6 Jan 5, 2024
0.0.5 Nov 23, 2022
0.0.1 May 25, 2022

#356 in Procedural macros

Download history 175/week @ 2024-08-02 158/week @ 2024-08-09 149/week @ 2024-08-16 222/week @ 2024-08-23 252/week @ 2024-08-30 325/week @ 2024-09-06 406/week @ 2024-09-13 311/week @ 2024-09-20 314/week @ 2024-09-27 501/week @ 2024-10-04 372/week @ 2024-10-11 347/week @ 2024-10-18 250/week @ 2024-10-25 296/week @ 2024-11-01 502/week @ 2024-11-08 452/week @ 2024-11-15

1,562 downloads per month
Used in cargo-spellcheck

MIT/Apache

160KB
3.5K SLoC

doc-chunks

Extract clustered documentation lines and provide a spanned and commonmark aware overlay with a span based mapping.


lib.rs:

Doc Chunks

Documentation is a representation of one or multiple documents.

A literal is a token provided by proc_macro2 or ra_ap_syntax crate, which is then converted by means of TrimmedLiteral using Clustering into a CheckableChunk (mostly named just chunk).

CheckableChunks can consist of multiple fragments, where each fragment can span multiple lines, yet each fragment is covering a consecutive Span in the origin content. Each fragment also has a direct mapping to the CheckableChunk internal string representation.

And Documentation holds one or many CheckableChunks per file path.

Dependencies

~10–22MB
~274K SLoC