2 unstable releases
0.2.8 | May 13, 2024 |
---|---|
0.1.5 |
|
0.1.4 |
|
0.1.2 |
|
0.0.0 | Mar 7, 2023 |
#1 in #stark-net
105KB
2.5K
SLoC
I am groot
[Proof of Concept] Rust code generator from OpenRPC spec
Usage
- Generate the code and then run suggested example:
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
TODO
-
async
version of theRpc
trait and the client- using
async_trait
- using
- Seamless inclusion into a build process
- extract
-build
sub-crate for[build-dependencies]
- extract
Misc
Total lines of code: find ./src -type f -name "*.rs" | xargs grep . | wc -l
Dependencies
~4–6MB
~111K SLoC