starknet-core-derive

Crates.iostarknet-core-derive
lib.rsstarknet-core-derive
version0.1.0
created_at2025-01-14 05:23:20.824797+00
updated_at2025-01-14 05:23:20.824797+00
descriptionProcedural macros for `starknet-core`
homepagehttps://starknet.rs/
repositoryhttps://github.com/xJonathanLEI/starknet-rs
max_upload_size
id1515484
size17,371
Jonathan LEI (xJonathanLEI)

documentation

README

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.

Commit count: 600

cargo fmt