Crate of the Week

I nominate indicatif, a library for rendering progress bars in command-line applications: https://crates.io/crates/indicatif

4 Likes

Wow, this thread is massive. Perhaps there should be a new thread each week. Or better yet, a new thread each week in a Crate of the Week category.

2 Likes

Less radical is a new thread each month or 3 monthes or 6 monthes.

Does anyone notice how my post is quoted, yet discourse says that it was actually @achanda? That's a bit weird.

1 Like

Fixed the quotation block metadata. The quotation text was manually edited to the one I intended to quote .

I'd like to propose https://crates.io/crates/version-sync which the author just announced in the 'What are you working on' thread.

https://github.com/TheNeikos/rustbreak

2 Likes

https://crates.io/crates/tomlq

I'd like to nominate my crate abrute. It's got a good feature set now. It's a brute force AES file decryptor.

https://github.com/Smithay/smithay

1 Like

I'd like to nominate if_chain, a macro to help combat the rightward drift caused by nested if and if let statements.

6 Likes

I would like to nominate my crate (highly biased) seq, a lightweight, generic sequence container for stack-memory-oriented list management, avoiding dynamic memory allocation while traversing a tree-data-structure. Intended for nested function-calls.

1 Like

I was originally going to criticize if_chain saying people should rewrite their code so you don't get the rightward drift in the first case, but reading the accompanying blog post I realized I've had this exact problem when wanting to write lints or a toy language. That's a +1 from me.

4 Likes

Linkified, because it took me at least three levels of indirection to find it. Nice read!

5 Likes

I have a crate of the week suggestion! It's colored. It is a terminal output coloring library. You can use it to color your terminal output, or make it bold, or underline it. It's easy to use and works like a charm (Unix only).

2 Likes

+1 colored. I’ve moved onto other crates for cross platform requirements for some of my crates that previously used it but it’s a great crate to get your feet wet playing with colors, mocking up color palettes and designs, etc.

Also the developer is very nice :slight_smile:

if_chain looks very similar to Elixir's "with".

Do you have a cross platform one to recommend?

I have suggestion, actix, asynchronous actor library for rust.

2 Likes

I use termcolor. Ftr I don’t recommend it at all for experimenting with colors/and or just beginning. the api is very unfriendly and tedious to use imho, but some of that is due to cross platform printing details (and some not). I have the same macro for writing colors more succinctly at the top of every project that uses it :frowning:

Termpainter looks also very cool, and should be cross platform as well, and looks to be interesting compromise between colored and termcolor, but haven’t had chance to experiment with it.

Good luck and have fun!

2 Likes