#codegen #extension #doc-string

tonic-disable-doctest

Disable doctest in autogenerated code preserving docstring

2 unstable releases

0.2.0 Feb 10, 2025
0.1.0 May 25, 2023

#642 in Development tools

Download history 5/week @ 2024-12-11 5/week @ 2024-12-18 33/week @ 2024-12-25 25/week @ 2025-01-01 20/week @ 2025-01-08 61/week @ 2025-01-22 115/week @ 2025-01-29 134/week @ 2025-02-05 78/week @ 2025-02-12 61/week @ 2025-02-19 58/week @ 2025-02-26 58/week @ 2025-03-05 45/week @ 2025-03-12 70/week @ 2025-03-19 72/week @ 2025-03-26

261 downloads per month

MIT license

8KB
74 lines

tonic-disable-doctest

crates.io Released API docs MIT licensed

Separate docstring for specific structs autogenerated by tonic_build. This may be handy in cases where comments for autogeneration input contain code that will be incorrectly treated as rust code and you have no control over the input. This will disable doctest of these docs while retaining the docstring in a separate struct.

Dependencies

~1.4–2MB
~38K SLoC