xand_api_proto/lib.rs
1#![forbid(unsafe_code)]
2
3#[allow(clippy::all)] // Prevent generated code from being checked by clippy
4mod xand_api {
5 // The string specified here must match the proto package name
6 include!(concat!(env!("OUT_DIR"), "/xand_api.rs"));
7}
8
9pub mod error;
10
11pub mod proto_models;
12pub mod xand_models_adapters;
13
14pub use xand_api::{
15 administrative_transaction as admin_txn, user_transaction as user_txn, SubmitProposal,
16 VoteProposal, *,
17};
18pub use xand_models_adapters::*;
19
20use std::convert::{TryFrom, TryInto};