Crates.io | sync_docs |
lib.rs | sync_docs |
version | |
source | src |
created_at | 2024-12-10 19:32:09.010919 |
updated_at | 2024-12-11 02:50:38.112679 |
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 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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");