| Crates.io | rspark |
| lib.rs | rspark |
| version | 0.2.0 |
| created_at | 2019-10-31 22:20:57.898185+00 |
| updated_at | 2019-11-01 17:40:42.082085+00 |
| description | Sparklines for Rust |
| homepage | https://crates.io/crates/rspark |
| repository | https://github.com/reugn/rspark |
| max_upload_size | |
| id | 177252 |
| size | 6,582 |
Sparklines for Rust apps.
Rust port of https://github.com/holman/spark
Add this to your Cargo.toml:
[dependencies]
rspark = "0.2.0"
Example:
let v = vec![2, 250, 670, 890, 2, 430, 11, 908, 123, 57];
let res = rspark::render(&v).unwrap();
assert_eq!("▁▂▆▇▁▄▁█▁▁", res);
MIT