| Crates.io | sync_docs |
| lib.rs | sync_docs |
| version | 0.2.0 |
| created_at | 2024-12-10 19:32:09.010919+00 |
| updated_at | 2024-12-11 02:50:38.112679+00 |
| description | This proc macro allows injecting documentation from prost generated Rust file into custom defined sdk types (s2-sdk-rust in this case) |
| homepage | https://github.com/s2-streamstore/sync_docs |
| repository | https://github.com/s2-streamstore/sync_docs |
| max_upload_size | |
| id | 1478973 |
| size | 26,151 |
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");