rspark

Crates.iorspark
lib.rsrspark
version0.2.0
sourcesrc
created_at2019-10-31 22:20:57.898185
updated_at2019-11-01 17:40:42.082085
descriptionSparklines for Rust
homepagehttps://crates.io/crates/rspark
repositoryhttps://github.com/reugn/rspark
max_upload_size
id177252
size6,582
Reugn (reugn)

documentation

https://github.com/reugn/rspark

README

rspark ▁▂▆▇▁▄█▁

Build Status Crate

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

Usage

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);

License

MIT

Commit count: 19

cargo fmt