An open API service indexing awesome lists of open source software.

https://github.com/s2-streamstore/sync_docs

A proc macro to sync docs from generated prost code into s2-sdk-rust's custom types
https://github.com/s2-streamstore/sync_docs

procmacro s2 tonic

Last synced: 3 months ago
JSON representation

A proc macro to sync docs from generated prost code into s2-sdk-rust's custom types

Awesome Lists containing this project

README

        

# 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.

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