sync_docs

Crates.iosync_docs
lib.rssync_docs
version0.2.0
created_at2024-12-10 19:32:09.010919+00
updated_at2024-12-11 02:50:38.112679+00
descriptionThis proc macro allows injecting documentation from prost generated Rust file into custom defined sdk types (s2-sdk-rust in this case)
homepagehttps://github.com/s2-streamstore/sync_docs
repositoryhttps://github.com/s2-streamstore/sync_docs
max_upload_size
id1478973
size26,151
Shikhar Bhushan (shikhar)

documentation

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.

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

cargo fmt