| Crates.io | starknet-rust |
| lib.rs | starknet-rust |
| version | 0.18.0 |
| created_at | 2025-11-24 18:08:54.753359+00 |
| updated_at | 2025-12-02 14:48:54.346678+00 |
| description | Complete Starknet library in Rustâ„¢ |
| homepage | |
| repository | https://github.com/software-mansion/starknet-rust |
| max_upload_size | |
| id | 1948307 |
| size | 131,897 |
Complete Starknet library in Rust
Note that
starknet-rustis still experimental. Breaking changes will be made before the first stable release. The library is also NOT audited or reviewed for security at the moment. Use at your own risk.
The underlying cryptography library
starknet-rust-cryptodoes NOT provide constant-time guarantees.
To use the crate from crates.io, add the following to your Cargo.toml file:
[dependencies]
starknet-rust = "0.18.0"
This workspace contains the following crates:
starknet-rust: Re-export of other sub-crates (recommended)starknet-rust-core: Core data structures for interacting with Starknetstarknet-rust-providers: Abstraction and implementation of clients for interacting with Starknet nodes and sequencersstarknet-rust-contract: Types for deploying and interacting with Starknet smart contractsstarknet-rust-crypto: Low-level cryptography utilities for Starknetstarknet-rust-signers: Starknet signer implementationsstarknet-rust-accounts: Types for handling Starknet account abstractionstarknet-rust-curve: Starknet curve operationsstarknet-rust-macros: Useful macros for using the starknet-rust cratesstarknet-rust-core-derive: Derive macros for traits in starknet-rust-corestarknet-rust-tokio-tungstenite: WebSocket subscription client with tokio-tungstenitestarknet-rust can be used as a WebAssembly module. Check out this example.
starknet-rust from C++starknet-rust can be used as a dynamic or static library from C++. Check out this example.
Benchmark results for native and WebAssembly targets are available for these crates:
For instructions on running the benchmark yourself, check here.
Examples can be found in the examples folder:
Mint yourself 1,000 TST tokens on alpha-sepolia
Make sure your account has some L2 Sepolia ETH to pay for the transaction fee.
Declare Cairo 1 contract on alpha-sepolia testnet
Make sure your account has some L2 Sepolia ETH to pay for the transaction fee.
Licensed under either of
at your option.
This project is a fork of the original starknet-rs by Jonathan LEI.
We would like to express our sincere thanks and appreciation to xJonathanLEI and all contributors to the original starknet-rs repository for their outstanding work.