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

#354 in Procedural macros

Download history 241/week @ 2024-02-28 158/week @ 2024-03-06 193/week @ 2024-03-13 205/week @ 2024-03-20 136/week @ 2024-03-27 216/week @ 2024-04-03 201/week @ 2024-04-10 215/week @ 2024-04-17 483/week @ 2024-04-24 200/week @ 2024-05-01 240/week @ 2024-05-08 280/week @ 2024-05-15 251/week @ 2024-05-22 240/week @ 2024-05-29 259/week @ 2024-06-05 124/week @ 2024-06-12

924 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

~9–19MB
~252K SLoC