Crate tonic_disable_doctest

Crate tonic_disable_doctest 

Source
Expand description

Extension for tonic_build allowing for disabling doctest for specific struct

Allows to 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 extension gives way to disable doctest of these docs while retaining the docstring in a separate struct linked by the docstring in original struct.

After using this hack full doctest run should pass even if autogenerated code normally contained offending parts that caused it to fail. E.g. in SO question

Traitsยง

BuilderEx
Extension for tonic_build::Builder allowing for code injection and doctest disabling