1 unstable release

0.1.0 Jan 14, 2025

#52 in #starknet

Download history 6247/week @ 2025-10-13 8430/week @ 2025-10-20 9809/week @ 2025-10-27 8885/week @ 2025-11-03 11246/week @ 2025-11-10 10383/week @ 2025-11-17 15335/week @ 2025-11-24 13522/week @ 2025-12-01 18400/week @ 2025-12-08 17941/week @ 2025-12-15 17081/week @ 2025-12-22 12732/week @ 2025-12-29 13943/week @ 2026-01-05 21800/week @ 2026-01-12 17958/week @ 2026-01-19 19270/week @ 2026-01-26

74,512 downloads per month
Used in 39 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.

Dependencies

~130–520KB
~12K SLoC