starknet-rust-core-derive 0.1.0

Procedural macros for `starknet-rust-core`
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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:

```rust
#[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.