Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/FGRibreau/spinners
π 60+ Elegant terminal spinners for Rust
https://github.com/FGRibreau/spinners
rust spinners terminal-ui
Last synced: 3 months ago
JSON representation
π 60+ Elegant terminal spinners for Rust
- Host: GitHub
- URL: https://github.com/FGRibreau/spinners
- Owner: FGRibreau
- License: mit
- Created: 2017-12-16T17:51:44.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-05T11:57:20.000Z (over 1 year ago)
- Last Synced: 2024-05-29T22:53:30.973Z (8 months ago)
- Topics: rust, spinners, terminal-ui
- Language: Rust
- Homepage: https://fgribreau.com
- Size: 851 KB
- Stars: 527
- Watchers: 4
- Forks: 25
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-rust-cn - FGRibreau/spinners
- awesome-rust - FGRibreau/spinners
- awesome-rust - FGRibreau/spinners
- awesome-rust-cn - FGRibreau/spinners
- awesome-rust-zh - FGRibreau/spinners - 60 ε€δΈͺδΌι ηη»η«―ζθ½¬ε¨ (εΊ / ε½δ»€θ‘)
- awesome-rust - FGRibreau/spinners - 60+ elegant terminal spinners (Libraries / Command-line)
- awesome-rust - FGRibreau/spinners
- fucking-awesome-rust - FGRibreau/spinners - 60+ elegant terminal spinners (Libraries / Command-line)
README
# Spinners - π 60+ Elegant terminal spinners for Rust
[![Cargo version](https://img.shields.io/crates/v/spinners.svg)](https://crates.io/crates/spinners) [![Crates.io](https://img.shields.io/crates/l/spinners.svg)](https://crates.io/crates/spinners) [![docs.rs](https://img.shields.io/badge/docs.rs-π-4EC329.svg?)](https://docs.rs/spinners/) [![Crates.io](https://img.shields.io/crates/d/spinners.svg)](https://crates.io/crates/spinners) [![Slack](https://img.shields.io/badge/Slack-Join%20our%20tech%20community-17202A?logo=slack)](https://join.slack.com/t/fgribreau/shared_invite/zt-edpjwt2t-Zh39mDUMNQ0QOr9qOj~jrg)
> ## β€οΈ Shameless plug
> - [Open-Source **Webhook** as a Service](https://www.hook0.com/)
> - [**Charts, simple as a URL**. 1 url = 1 chart - Charts API](https://image-charts.com)
> - [Keycloak Identity and Access Management (IAM) as a Service](https://www.cloud-iam.com/)
> - [Automate your **RoamResearch** second brain](https://www.roam-bot.com)
> - [Blazing Fast Gitlab CI Runners (10x faster)](https://cloud-runner.com/)![200083093-cf48fcab-d95c-4a59-ac66-6e167dd33e7e](https://github.com/FGRibreau/spinners/assets/138050/a3e4d4f9-44c4-4b54-82a7-e608ab1da742)
## Install
See [Cargo page](https://crates.io/crates/spinners)
## Usage
```rust
use spinners::{Spinner, Spinners};
use std::thread::sleep;
use std::time::Duration;fn main() {
let mut sp = Spinner::new(Spinners::Dots9, "Waiting for 3 seconds".into());
sleep(Duration::from_secs(3));
sp.stop();
}
```- [List of available spinners](src/utils/spinner_names.rs)
- [Documentation](https://docs.rs/spinners/)## Example
```shell
cargo run --example cycle
``````shell
cargo run --example simple
```## License
MIT © [François-Guillaume Ribreau](https://fgribreau.com), James Cordor