#prost #docs #tonic #proc-macro

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

#2020 in Procedural macros

Download history 373/week @ 2024-12-09 126/week @ 2024-12-16 47/week @ 2024-12-23 19/week @ 2024-12-30 31/week @ 2025-01-06 57/week @ 2025-01-13 43/week @ 2025-01-20 33/week @ 2025-01-27 62/week @ 2025-02-03

198 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

~195–630KB
~15K SLoC