Building My First Command Line Interface (CLI) with Rust

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

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • engram-cli

  • After telling myself over and over that today is the day I start learning rust. I finally successfully built a (very small) cli for engram.

  • Cargo

    The Rust package manager

  • # Cargo.toml [package] name = "eg" version = "0.1.0" edition = "2021" # See more keys and their definitions at [https://doc.rust-lang.org/cargo/reference/manifest.html](https://doc.rust-lang.org/cargo/reference/manifest.html) [dependencies] reqwest = { version = "0.11", features = ["json", "cookies"] } tokio = { version = "1", features = ["full"] }

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • tokio

    A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...

  • This is where the tokio library comes in to play. We add it to the Cargo.toml under [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