| Crates.io | zserio |
| lib.rs | zserio |
| version | 0.5.2 |
| created_at | 2024-08-29 09:36:20.388589+00 |
| updated_at | 2025-05-16 14:10:17.371118+00 |
| description | Runtime support for zserio |
| homepage | https://github.com/Danaozhong/rust-zserio |
| repository | https://github.com/Danaozhong/rust-zserio |
| max_upload_size | |
| id | 1355914 |
| size | 121,427 |
This crate contains the runtime support code for the zserio serialization framework. It is used by code generated by the zserio-rs-build zserio compiler. Normally you should not use this crate yourself.
Install zserio-rs-build using:
cargo install zserio-rs-build
The code generator is executed using the following command:
zserio-rs-build =<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, a mod.rs file will be created. In case the code is generated without a
prefix, it is assumed that the crate will be built as a library, and generates
a lib.rs instead. You must add zserio as a dependency for the crate
containing the generated code:
cargo add zserio
The version of the zserio crate used must match the version of zserio-rs-build used.