Crates.io | matrix-protos-rust |
lib.rs | matrix-protos-rust |
version | 0.1.0 |
source | src |
created_at | 2021-09-15 18:42:49.301136 |
updated_at | 2021-09-15 18:42:49.301136 |
description | Rust protobuf bindings for interacting with matrix-io devices |
homepage | |
repository | |
max_upload_size | |
id | 451941 |
size | 1,126,063 |
Rust bindings for the matrix io
There are two ways to build the protobuf bindings.
The first is by using the Makefile which depends on the protobuf rust codegen binary. This binary can be installed with cargo
cargo install protobuf-codegen
This also requires the protoc binary to be installed.
Once the two binaries are installed, you can download the protos from the matrix-io project using make protocol-buffers-master.zip
And then build the bindings with make bindings
The second is by using the cargo build helper along with the protobuf-codegen-pure crate.
To build the bindings you can simply run the cargo command cargo build
This still requires/assumes that the matrix-io protos are avaliable in the protocol-buffers-master directory. So it still makes sense to run the make protocol-buffers-master.zip
command mentioned above prior to cargo build
TODO
Examples of using these bindings are available in the examples directory.