ResilientDB Rust SDK
Overview
The ResilientDB Rust SDK is a powerful Rust library that facilitates seamless interaction with resource databases. It offers comprehensive APIs for managing transactions and blocks, simplifying integration with systems requiring robust data management capabilities.
Features
- Transaction Management: Create, retrieve, and manage transactions effortlessly.
- Block Operations: Retrieve, group, and query information about blocks based on specified criteria.
- Flexible Configuration: Tailor your interactions with resource databases using versatile configuration options.
Installation
Add this line to your Cargo.toml
file to integrate the SDK into your Rust project:
[]
= "0.1.0"
Usage
// Import the ResDB SDK
use ResDB;
// Create a new ResDB instance
let res_db = new;
// Example: Create a new transaction object
let transaction = res_db.;
// Example: Get all transactions from a specified API endpoint
let all_transactions = res_db..await;
Examples
// Example: Retrieve all blocks from a specified API endpoint
let all_blocks = res_db..await;
// Example: Group blocks with a specified batch size
let grouped_blocks = res_db..await;
Contributing
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.
License
This SDK is licensed under the Apache-2.0 License.
Acknowledgments
- Special thanks to contributors.
- This SDK leverages the power of serde for serialization and deserialization.