8000 starknet-rs/starknet-core-derive at master · glihm/starknet-rs · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
 
 

starknet-core-derive

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Procedural macros for starknet-core

This crate provides procedural macros for deriving the Encode and Decode traits from starknet-core. This allows defining a type like:

#[derive(Debug, PartialEq, Eq, Decode, Encode)]
struct CairoType {
    a
2F04
: Felt,
    b: U256,
    c: bool,
}

and using the ::encode() and ::decode() methods, without manually implementing the corresponding traits.

0