#stark-net #ethereum #web3

macro starknet-rust-core-derive

Procedural macros for starknet-rust-core

2 unstable releases

Uses new Rust 2024

0.19.0-rc.0 Feb 24, 2026
0.1.0 Nov 24, 2025

#53 in #starknet

Download history 9/week @ 2025-11-20 20/week @ 2025-11-27 1006/week @ 2025-12-04 2897/week @ 2025-12-11 4437/week @ 2025-12-18 5148/week @ 2025-12-25 3442/week @ 2026-01-01 6139/week @ 2026-01-08 4918/week @ 2026-01-15 5440/week @ 2026-01-22 3284/week @ 2026-01-29 4755/week @ 2026-02-05 3699/week @ 2026-02-12 8359/week @ 2026-02-19 5449/week @ 2026-02-26 5382/week @ 2026-03-05

23,427 downloads per month
Used in 14 crates (2 directly)

MIT/Apache

17KB
318 lines

Procedural macros for starknet-rust-core

This crate provides procedural macros for deriving the Encode and Decode traits from starknet-rust-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

~115–485KB
~11K SLoC