| Crates.io | rusplay |
| lib.rs | rusplay |
| version | 0.1.6 |
| created_at | 2025-11-08 11:24:14.300213+00 |
| updated_at | 2025-11-18 16:24:39.483234+00 |
| description | Memory safe, blazing fast Rugplay library written in Rust |
| homepage | https://github.com/Muxutruk2/rusplay/rusplay |
| repository | https://github.com/Muxutruk2/rusplay |
| max_upload_size | |
| id | 1922779 |
| size | 110,377 |
🚀 Memory safe, blazingly fast, asynchronous Rugplay library written in Rust™
To use the library in a Rust project, run cargo add rusplay
You can read the documentation here:
Example of a simple program
use rusplay::{RugplayClient, RugplayError, models::TopCoinsResponse};
#[tokio::main]
async fn main() -> Result<(), RugplayError> {
let client = RugplayClient::new(
"rgpl_...",
None,
);
let top_coins: TopCoinsResponse = client.get_top_coins().await?;
for coin in top_coins.coins {
println!(
"{} (*{}) ${} 24h Change: {} Market Cap: {} 24h Volume: {}",
coin.name, coin.symbol, coin.price, coin.change24h, coin.market_cap, coin.volume24h
);
}
Ok(())
}