rspark ▁▂▆▇▁▄█▁

Build Status Crate

Sparklines for Rust apps.
Rust port of https://github.com/holman/spark

Usage

Add this to your Cargo.toml: toml [dependencies] rspark = "0.2.0"

Example: rust let v = vec![2, 250, 670, 890, 2, 430, 11, 908, 123, 57]; let res = rspark::render(&v).unwrap(); assert_eq!("▁▂▆▇▁▄▁█▁▁", res);

License

MIT