1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! # cryptologo
//!
//! Rust client for [crypto-logo.com](https://crypto-logo.com) — the cryptocurrency
//! logo database with 413 coins in SVG, PNG, WebP, JPEG, and ICO formats.
//!
//! ## Quick Start
//!
//! ```rust,no_run
//! use cryptologo::{CryptoLogo, LogoFormat};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), cryptologo::Error> {
//! let client = CryptoLogo::new();
//!
//! // List all coins
//! let coins = client.list_coins().await?;
//! for coin in coins.iter().take(3) {
//! println!("{} ({}) — rank #{:?}", coin.name, coin.ticker, coin.market_cap_rank);
//! }
//!
//! // Download Bitcoin SVG
//! let svg = client.get_logo("bitcoin-btc", LogoFormat::Svg, None).await?;
//! std::fs::write("bitcoin.svg", &svg)?;
//!
//! Ok(())
//! }
//! ```
pub use ;
pub use ;
/// Standard pre-generated square sizes in pixels.
pub const ALLOWED_SIZES: & = &;
/// Valid ICO format sizes.
pub const ICO_SIZES: & = &;