5 releases

0.0.6 Jan 5, 2024
0.0.5 Nov 23, 2022
0.0.4 Sep 15, 2022
0.0.3 Aug 19, 2022
0.0.1 May 25, 2022

#894 in Text processing

Download history 630/week @ 2023-11-27 397/week @ 2023-12-04 306/week @ 2023-12-11 348/week @ 2023-12-18 35/week @ 2023-12-25 139/week @ 2024-01-01 268/week @ 2024-01-08 318/week @ 2024-01-15 293/week @ 2024-01-22 458/week @ 2024-01-29 340/week @ 2024-02-05 198/week @ 2024-02-12 350/week @ 2024-02-19 288/week @ 2024-02-26 157/week @ 2024-03-04 60/week @ 2024-03-11

858 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–24MB
~302K SLoC