8 releases

new 0.2.1 Mar 10, 2025
0.2.0 Nov 8, 2024
0.1.0 Apr 24, 2024
0.0.6 Jan 5, 2024
0.0.1 May 25, 2022

#498 in Procedural macros

Download history 539/week @ 2024-11-20 500/week @ 2024-11-27 629/week @ 2024-12-04 547/week @ 2024-12-11 350/week @ 2024-12-18 140/week @ 2024-12-25 320/week @ 2025-01-01 518/week @ 2025-01-08 407/week @ 2025-01-15 511/week @ 2025-01-22 596/week @ 2025-01-29 573/week @ 2025-02-05 485/week @ 2025-02-12 460/week @ 2025-02-19 568/week @ 2025-02-26 474/week @ 2025-03-05

2,073 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–23MB
~279K SLoC