Crates.io | xand-api-proto |
lib.rs | xand-api-proto |
version | 49.0.0 |
source | src |
created_at | 2023-02-23 23:43:29.59664 |
updated_at | 2023-02-24 16:10:04.513619 |
description | Protobuf definitions for the Xand API |
homepage | |
repository | |
max_upload_size | |
id | 793142 |
size | 190,338 |
Table of Contents generated with DocToc
This crate contains the protobuf / gRPC definitions for the xand-api
. It
will autogenerate rust code from those definitions when built.
This crate also houses its own wire and business types inside its xand_api_proto::proto_models
module, which is shared with the xand-api-client
.
To see what's generated and exposed as part of the public API run cargo doc --open
.
./build.rs
uses tonic-build
to generate Rust modules at compile-time from protobuf files.
./xand-api.proto
yields ${OUT_DIR}/xand_api.rs
In turn, ./src/lib.rs
creates modules with the contents of those files. Consequently, the Rust types corresponding to the protobuf definitions are made available by this crate.