sync-code-1.0.0 doesn't have any documentation.
sync-code
sync-code synchronizes code blocks across different files, providing a clear alternative to macros in certain scenarios.
When duplication is limited but the design is complex (for example, involving generics), macros often reduce readability and make maintenance harder.
By using sync-code instead, the code remains straightforward and maintainable, while development tools such as Go-to-definition and intelligent auto-completion continue to work as expected.
Usage
Run command:
cargo add --build sync-code
See crate.
build.rs:
your_code.rs:
// $sync block_name
// $sync end
See also tests.
馃敄 Keywords
sync-code 路 rust 路 code generation 路 macro replacement 路 generics 路 readability 路 maintainability 路 developer tools