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
- Host: GitHub
- URL: https://github.com/s2-streamstore/sync_docs
- Owner: s2-streamstore
- License: apache-2.0
- Created: 2024-12-10T18:54:32.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-11T02:50:28.000Z (5 months ago)
- Last Synced: 2025-01-22T22:47:11.031Z (4 months ago)
- Topics: procmacro, s2, tonic
- Language: Rust
- Homepage:
- Size: 9.77 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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");
```