#prost #docs #proc-macro #tonic

macro sync_docs

This proc macro allows injecting documentation from prost generated Rust file into custom defined sdk types (s2-sdk-rust in this case)

2 unstable releases

new 0.2.0 Dec 11, 2024
0.1.0 Dec 10, 2024

#441 in Procedural macros

32 downloads per month
Used in streamstore

Apache-2.0

14KB
304 lines

sync_docs

This proc macro allows us to inject documentation from prost generated rust file into our sdk types, mainly beneficial to avoid having to duplicate the documentation.

In build.rs of your repository, specify filename of the generated rust file.

println!("cargo:rustc-env=COMPILED_PROST_FILE=s2.v1alpha.rs");

Dependencies

~220–660KB
~16K SLoC