rspark 0.2.0

Sparklines for Rust
Documentation
  • Coverage
  • 50%
    3 out of 6 items documented2 out of 3 items with examples
  • Size
  • Source code size: 6.2 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.37 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • Documentation
  • reugn/rspark
    47 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • reugn

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