6 releases

0.1.0 Apr 24, 2024
0.0.6 Jan 5, 2024
0.0.5 Nov 23, 2022
0.0.4 Sep 15, 2022
0.0.1 May 25, 2022

#449 in Procedural macros

Download history 208/week @ 2024-06-06 280/week @ 2024-06-13 378/week @ 2024-06-20 270/week @ 2024-06-27 297/week @ 2024-07-04 471/week @ 2024-07-11 343/week @ 2024-07-18 281/week @ 2024-07-25 175/week @ 2024-08-01 160/week @ 2024-08-08 141/week @ 2024-08-15 205/week @ 2024-08-22 264/week @ 2024-08-29 254/week @ 2024-09-05 494/week @ 2024-09-12 265/week @ 2024-09-19

1,309 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
~273K SLoC