Crate of the Week

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

noisy_float, mentioned in a comment in a recent (and popular) Reddit thread.

/u/kyrenn reply:

You know what, I was actually unaware of noisy_float, that actually looks like almost exactly what I wanted. It even implements all the important num_traits traits, including the Float trait. I actually wish I knew about this before, thank you for showing me that!

4 Likes

I'm surprised that so many people don't know cargo outdated yet. Everyone should know this. :wink: Let's spread the word:

$ cargo outdated
Name             Project  Compat  Latest   Kind         Platform
----             -------  ------  ------   ----         --------
clap             2.20.0   2.20.5  2.26.0   Normal       ---
clap->bitflags   0.7.0    ---     0.9.1    Normal       ---

https://github.com/kbknapp/cargo-outdated#demo

27 Likes

Ooh, cargo outdated looks nice. I would like to submit another for consideration:

cargo license which shows the licenses of all your dependencies

11 Likes

I propose futures-await by @alexcrichton - makes working with async code so much easier.

5 Likes

faster - Zero-overhead, cross-platform, beautiful explicit SIMD code.

8 Likes

rerast - A tool for transforming Rust code using rules.

4 Likes

failure - a new error management story.

13 Likes

I'd like to have both faster and failure as creates of the week. So I'd suggest that maybe one could be published in one week and the other the next week.

Same here, thanks for the awesome batch of suggestions @nasa42!

1 Like

How about we just post it as

This week, the community wants to promote: Faster failure.

and leave if to readers to discover these are actually two links to crates? :wink:

5 Likes

Considering how so many websites, whether high-profile or hobbyist, are still hacked by fairly trivial XSS and other injection attacks, I believe the Ammonia HTML sanitizer deserves a bit of spotlight!

They just now announced reaching a stable 1.0.0.

If you use Cargo, you've benefited from it already, as it powers the HTML sanitising behind crates.io.

10 Likes

ternimal - Simulate a lifeform in the terminal.

5 Likes

I just found out about bark: Dynamically choose between Arc or Rc - #13 by mbrubeck

https://github.com/TyOverby/Bark

Although still in research mode, it looks like a great idea.

3 Likes

I'd like to nominate rust-ipfs-api (crates.io).