thruput-xdr 0.63.0

Bindings for Thruput protocol structures
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Compile-time guard that generated types carry `#[derive(ConstXDRSize)]`.
//!
//! x23c emits `ConstXDRSize` alongside the other XDR derives; regenerating
//! with an older x23c drops it silently. These assertions break the build
//! under the `xdrs` feature if that happens.

const _: () = {
    const fn assert_const_xdr_size<
        T: xdrs::cxs::ConstMaxSize + xdrs::txs::ConstMaxSize,
    >() {
    }
    assert_const_xdr_size::<crate::types::uint128_xdr>();
    assert_const_xdr_size::<crate::transaction::Transaction>();
    assert_const_xdr_size::<crate::header::ProposalHeader>();
    assert_const_xdr_size::<crate::event::TxEmittedEvent>();
};