zserio serialization bindings for Rust.
Install rust-zserio using:
cargo install rust-zserio
The code generator is executed using the following command:
rust-zserio --root=<code_root_path> -o=<output_directory> <path_to_zserio_files>
This will generate the files needed to read/write zserio
-encoded binary data. The root
CLI flag is optional, and specifies a crate prefix. If the prefix is set, rust-zserio will generate a mod.rs
file. In case the code is generated without a prefix, rust-zserio assumes that the crate will be built as a library, and generates a lib.rs
instead.
Although the project is in its early stages, it is feature-complete and should work with most zserio
applications. Successful test runs were done with sample projects, that were compared against the Python reference implementation. Nevertheless, the library does not have many users yet, and test coverage is small. If you find issues, please report them.
This is my very first Rust project written in my spare time, and the code is far from perfect. I am happy to receive any suggestions and to learn on how to write better Rust code, so please feel welcome to raise a PR!