Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/suyashtnt/fizzbuzz

:rocket: :rocket: blazingly fast fizzbuzz program using rust :rocket: :rocket:
https://github.com/suyashtnt/fizzbuzz

cli fizzbuzz fizzbuzz-rust rust

Last synced: 3 days ago
JSON representation

:rocket: :rocket: blazingly fast fizzbuzz program using rust :rocket: :rocket:

Awesome Lists containing this project

README

        

# fizzbuzz
## :rocket: :rocket: blazingly fast fizzbuzz program using rust :rocket: :rocket:

this is a fizzbuzz CLI. That is overengineered Including:

- setting starting amount
- blazingly fast :rocket:
- setting max amount
- blazingly fast :rocket:
- custom definitions
- blazingly fast :rocket:
- progress tracking
- blazingly fast :rocket:
- is also a library
- blazingly fast :rocket:
- makes use of iterators
- blazingly fast :rocket:
- tiny (~5kb)

## programming stuff about this

- written in rust
- crates it uses:
- - indicatif (https://lib.rs/crates/indicatif) (for progress bar)
- - structopt (https://lib.rs/crates/structopt) (for the CLI)
- works via an iterator(Generator)
- - simply checks for matches in `match_against` and if it matches add the value to the output(This allowed for compound things like `FizzBuzz` to work
- - returns `None` if `current` is equal to `max`
- custom matching uses slices
- - if finds where the `=` sign is and then tries to parse the value before and after the `=`

## FAQ

## where macOS build
Non existent for now because github actions are failing. Build it yourself

### why?
why not.

On a more serious note, this is usually where I test random things and try out new rust utils.

### why not use xxx
use it if you want (but idk when someone will need a fizzbuzz generator)