1 unstable release

0.1.0 Jan 14, 2025

#82 in #starknet

Download history 803/week @ 2025-01-11 1976/week @ 2025-01-18 1079/week @ 2025-01-25 1139/week @ 2025-02-01 820/week @ 2025-02-08

5,311 downloads per month
Used in 22 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

~205–640KB
~15K SLoC