#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

0.2.0 Dec 11, 2024
0.1.0 Dec 10, 2024

#347 in Procedural macros

Download history 73/week @ 2024-12-04 355/week @ 2024-12-11 82/week @ 2024-12-18 36/week @ 2024-12-25 21/week @ 2025-01-01

567 downloads per month
Used in 2 crates (via 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–670KB
~16K SLoC