| Crates.io | iamgroot |
| lib.rs | iamgroot |
| version | 0.3.0 |
| created_at | 2023-03-07 22:35:38.086048+00 |
| updated_at | 2025-02-12 09:47:51.381192+00 |
| description | Rust code generation from Open-RPC spec |
| homepage | |
| repository | |
| max_upload_size | |
| id | 804010 |
| size | 1,283,323 |
[Proof of Concept] Rust code generator from OpenRPC spec
export KEY="..."
export URL="https://starknet-mainnet.g.alchemy.com/v2/$KEY"
./x.sh
RUST_LOG=debug cargo run --example demo
cargo run --example gen > data.json
## Sample call
curl \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","method":"starknet_getStateUpdate","params":[{"block_hash": "0x4684a9257747388a70848ccf222fd4c7e0bde27b84457e829ee48cac28ea21d"}],"id":1}' \
$URL
async version of the Rpc trait and the client
async_trait-build sub-crate for [build-dependencies]Total lines of code: find ./src -type f -name "*.rs" | xargs grep . | wc -l