Diving into Rust with a CLI

This page summarizes the projects mentioned and recommended in the original post on dev.to

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • structopt

    Parse command line arguments by defining a struct.

  • We can do this all in just a few lines of Rust via the clap crate. However, for those familiar with the structopt crate, which allows one to define a Rust struct that contains all the CLI logic, as of clap 3.0 that code has been merged together. We will use the 3.0.0-beta.1 release of clap to demonstrate.

  • anyhow

    Flexible concrete Error type built on std::error::Error

  • To let main() handle our errors, it needs to return a Result as well. Since we'll be dealing all kinds of different errors from different crates, it's helpful to have some convenience methods and representation for handling all this. The anyhow crate does just this!

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • grab-xkcd

    Downloads an XKCD comic

  • The full code from this article can be found at github.com/kbknapp/grab-xkcd

  • cargo-edit

    A utility for managing cargo dependencies from the command line.

  • We'll use cargo-edit to add our dependencies:

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • clap 4.0.0, a Rust argument parser, is released!

    13 projects | /r/rust | 28 Sep 2022
  • Is Rust's cargo-edit crate still relevant?

    2 projects | /r/rust | 12 May 2023
  • What are some useful tools for Rust?

    10 projects | /r/rust | 3 May 2023
  • How to list upgradable crates programmatically

    3 projects | /r/rust | 13 Apr 2023
  • TIL about cargo add

    2 projects | /r/rust | 15 Dec 2022