| Crates.io | starknet-core-derive |
| lib.rs | starknet-core-derive |
| version | 0.1.0 |
| created_at | 2025-01-14 05:23:20.824797+00 |
| updated_at | 2025-01-14 05:23:20.824797+00 |
| description | Procedural macros for `starknet-core` |
| homepage | https://starknet.rs/ |
| repository | https://github.com/xJonathanLEI/starknet-rs |
| max_upload_size | |
| id | 1515484 |
| size | 17,371 |
starknet-coreThis 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.