1 unstable release
| 0.1.0 | Jan 14, 2025 |
|---|
#52 in #starknet
74,512 downloads per month
Used in 39 crates
(2 directly)
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