6 releases

new 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

#216 in Procedural macros

Download history 273/week @ 2024-01-06 327/week @ 2024-01-13 301/week @ 2024-01-20 450/week @ 2024-01-27 346/week @ 2024-02-03 199/week @ 2024-02-10 342/week @ 2024-02-17 287/week @ 2024-02-24 157/week @ 2024-03-02 172/week @ 2024-03-09 217/week @ 2024-03-16 158/week @ 2024-03-23 165/week @ 2024-03-30 249/week @ 2024-04-06 149/week @ 2024-04-13 485/week @ 2024-04-20

1,052 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–21MB
~261K SLoC