Skip to content

Instantly share code, notes, and snippets.

@spdrman
Last active February 7, 2022 17:01
Show Gist options
  • Save spdrman/a3e84dc1e8158f99d567d8903c48d625 to your computer and use it in GitHub Desktop.
Save spdrman/a3e84dc1e8158f99d567d8903c48d625 to your computer and use it in GitHub Desktop.
Awesome Rust

Cargo like npm

  • cargo-watch watches over your project's source for changes, and runs Cargo commands
  • cargo-edit add, remove, and upgrade dependencies by modifying your Cargo.toml

CLI

  • clap // Command Line Argument Parser for Rust
  • structopt // Parse command line arguments by defining a struct. It combines clap with custom derive.

Containerizer

  • maplit // Container / collection literal macros for HashMap, HashSet, BTreeMap, BTreeSet
  • once_cell // provides two new cell-like types, unsync::OnceCell and sync::OnceCell

ASYNC

  • async-trait // Add support for async in traits
  • crossbeam // This crate provides a set of tools for concurrent programming

JSON Parsing

  • serde + serde_json

ERROR Handling

  • anyhow // This library provides anyhow::Error, a trait object based error type for easy idiomatic error handling
  • thiserror // This library provides a convenient derive macro for the standard library's std::error::Error trait
  • color-eyre // An error report handler for panics and the eyre crate for colorful, consistent, and well formatted errors

Logging

log // A Rust library providing a lightweight logging facade. simplelog // A simple-log with local file or stdout write by Rust.

@spdrman
Copy link
Author

spdrman commented Feb 7, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment