| Crates.io | braiinspool |
| lib.rs | braiinspool |
| version | 0.2.0 |
| created_at | 2022-11-15 08:49:48.513121+00 |
| updated_at | 2025-09-03 10:35:06.456992+00 |
| description | Braiins Pool API |
| homepage | https://github.com/shadowylab/braiinspool |
| repository | https://github.com/shadowylab/braiinspool.git |
| max_upload_size | |
| id | 715542 |
| size | 62,953 |
Braiins Pool client.
use braiinspool::prelude::*;
#[tokio::main]
async fn main() -> Result<(), Error> {
// Construct client
let client = BraiinsPoolClient::new("apikey")?;
// Get pool stats
let pool_stats: PoolStats = client.pool_stats().await?;
println!("{:#?}", pool_stats);
// Get user profile
let user_profile: UserProfile = client.user_profile().await?;
println!("{:#?}", user_profile);
// Get daily rewards
let daily_rewards: DailyRewards = client.daily_rewards().await?;
println!("{:#?}", daily_rewards);
// Get workers
let workers: Workers = client.workers().await?;
println!("{:#?}", workers);
Ok(())
}
The following crate feature flags are available:
| Feature | Default | Description |
|---|---|---|
rustls |
Yes | Enable rustls |
nativetls |
No | Enable native TLS (openssl) |
socks |
No | Enable socks5 proxy support |
This project is built with the Rust language version 2024 and requires a minimum compiler version of 1.85.0.
This project is distributed under the MIT software license - see the LICENSE file for details