matrix-protos-rust

Crates.iomatrix-protos-rust
lib.rsmatrix-protos-rust
version0.1.0
sourcesrc
created_at2021-09-15 18:42:49.301136
updated_at2021-09-15 18:42:49.301136
descriptionRust protobuf bindings for interacting with matrix-io devices
homepage
repository
max_upload_size
id451941
size1,126,063
Wes Widner (kai5263499)

documentation

README

matrix-protos-rust

Rust bindings for the matrix io

Building the bindings

There are two ways to build the protobuf bindings.

The protoc way

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 native Rust way

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

Usage

TODO

Example

Examples of using these bindings are available in the examples directory.

Commit count: 0

cargo fmt