Skip to main content

Crate tonlib_tlb_derive

Crate tonlib_tlb_derive 

Source
Expand description

Derive support for [tonlib_core::tlb_types::tlb::TLB].

The macro is intentionally compatibility-first with the existing local tlb-derive surface used in TON projects built on tonlib-core.

Crates that use #[derive(TLB)] must declare tonlib-core in their own [dependencies], because the generated impls reference tonlib-core directly. This proc-macro crate only needs tonlib-core in [dev-dependencies] for its own test suite.

Derive Macrosยง

TLB
Derives [tonlib_core::tlb_types::tlb::TLB] for structs and enums.