Learning Rust by Building a CLI App

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

Our great sponsors
  • Onboard AI - Learn any GitHub repo in 59 seconds
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • SaaSHub - Software Alternatives and Reviews
  • todo-cli-app

    📌 Note: there is also another crate async-std in the Cargo.toml (the project's dependency file) but it is not going to be used in this tutorial.

  • Cargo

    The Rust package manager

    To create a new application we'll use cargo (a build tool and also a package manager for Rust. It is used for scaffolding new library/binary projects). So in your projects folder, you can run this command in your terminal:

  • Onboard AI

    Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.

  • prettytable-rs

    A rust library to print aligned and formatted tables

    Lastly, after accepting user input it reached the time for displaying what we have in our database. I did not want to use the same old println macro for this. Then came the research part for a cargo package that could satisfy this requirement. I wanted the library to be able to display the database records i a tabular format, and thus found the prettytabl-rs cargo package. It is an easy to use package and so I chose it.

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