1 unstable release

new 0.1.0 Jan 14, 2025

#61 in #starknet

Download history 215/week @ 2025-01-08

215 downloads per month
Used in 15 crates (2 directly)

MIT/Apache

18KB
317 lines

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: Felt,
    b: U256,
    c: bool,
}

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


lib.rs:

Procedural derive macros for the starknet-core crate.

Dependencies

~210–650KB
~15K SLoC