ton_macros 0.0.5

A collection of types and utilities for interacting with the TON network
Documentation
1
2
3
4
5
6
7
8
9
10
mod tlb_derive;
mod tlb_derive_enum;
mod tlb_derive_struct;

use crate::tlb_derive::{TLBHeaderAttrs, tlb_derive_impl};
use proc_macro::TokenStream;

/// Automatic `TLB` implementation
#[proc_macro_derive(TLB, attributes(tlb))]
pub fn tlb_derive(input: TokenStream) -> TokenStream { tlb_derive_impl(input).into() }