Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reugn/rspark
▁▂▆▇▁▄█▁ Sparklines for Rust apps
https://github.com/reugn/rspark
fish-shell histogram histograms rust rust-apps rust-crate rust-library sparkline sparklines
Last synced: 3 months ago
JSON representation
▁▂▆▇▁▄█▁ Sparklines for Rust apps
- Host: GitHub
- URL: https://github.com/reugn/rspark
- Owner: reugn
- License: mit
- Created: 2019-10-30T17:52:34.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-01T09:35:21.000Z (about 3 years ago)
- Last Synced: 2024-07-03T04:22:55.801Z (4 months ago)
- Topics: fish-shell, histogram, histograms, rust, rust-apps, rust-crate, rust-library, sparkline, sparklines
- Language: Rust
- Homepage: https://crates.io/crates/rspark
- Size: 10.7 KB
- Stars: 48
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rspark ▁▂▆▇▁▄█▁
[![Build](https://github.com/reugn/rspark/actions/workflows/build.yml/badge.svg)](https://github.com/reugn/rspark/actions/workflows/build.yml)
[![Crate](https://img.shields.io/crates/v/rspark.svg)](https://crates.io/crates/rspark)Sparklines library for Rust applications.
A Rust port of [spark](https://github.com/holman/spark).## Usage
Add `rspark` 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