znap-macros

Crates.ioznap-macros
lib.rsznap-macros
version0.1.37
sourcesrc
created_at2024-06-17 18:10:23.836251
updated_at2024-08-31 16:22:53.817395
descriptionCollection of macros to build znap collections
homepage
repositoryhttps://github.com/heavy-duty/znap
max_upload_size
id1274687
size4,323
Daniel Marin (danmt)

documentation

README

znap-macros

Macro collection for creating Solana actions

The znap-macros module is a collection of macros designed to facilitate metaprogramming in Rust. This module relies on znap-syn for code parsing and generation, allowing developers to dynamically and efficiently manipulate and extend code.

Macros in Rust allow reading the current code and adding extra code, which is essential for automatic generation of functions, structures and other entities. znap-macros uses the znap-syn capability to parse the source code and transform it into manipulable objects, applying specific logic and then generating the necessary code.

Solana Actions Macros

Macros in znap-macros allow you to transform Rust code snippets into znap-syn-defined objects such as CollectionMod, ActionStruct, QueryStruct and ErrorEnum. These macros facilitate the creation and manipulation of these objects to generate Solana actions.

Package

Package Description Version Docs
znap-macros Macro collection for creating Solana actions Crates.io Docs.rs
Commit count: 65

cargo fmt