zencan-build

Crates.iozencan-build
lib.rszencan-build
version0.0.3
created_at2025-05-23 18:40:48.462034+00
updated_at2026-01-20 19:56:10.69572+00
descriptionLibrary for generating code for zencan-node crate
homepage
repositoryhttps://github.com/mcbridejc/zencan
max_upload_size
id1686603
size92,102
Jeff McBride (mcbridejc)

documentation

README

zencan-build

Library crate to generate object dictionary rust code from an input device configuration file. Used to generate static objects for use with zencan-node crate.

Dev Notes

Better errors

When the generated code is not syntactically correct rust code, prettyplease generates errors which are less than helpful for determining the cause of the error. In this case, rustfmt provides a much better output, so:

cargo run --example build_od -- CONFIG_FILE.toml > temp.rs, and then rustfmt temp.rs

Commit count: 197

cargo fmt