alfredodeza / advanced-rust-cli

Create advanced Rust CLIs using examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advanced Rust CLI Example

A small Rust CLI example you can use to build on. With an emphasis on Linux and creating automation tools that solve a problem for you. This is the basis for DevOps principles that you can apply in your own environment as well as production environments for automating tasks and making your an efficient engineer.

This repository is Codespaces ready, and it is set as a template repository. You can create a new repository from this template and start working on your own with Codespaces. This means that Rust, Copilot, and all the extensions are already installed and configured for you.

πŸ’‘ Are you just looking for a πŸ‘‰ Rust template to get started easily with a project? The template has everything you need!

This repository is part of the Python and Rust CLI tools course:

πŸš€ Watch the Video course

O'Reilly

Contents

This week has several examples located in the ./examples directory. Make sure you have Rust installed and you are using Visual Studio Code.

This repository is Codespaces ready, and it is set as a template repository. You can create a new repository from this template and start working on your own with Codespaces. This means that Rust, Copilot, and all the extensions are already installed and configured for you.

These are all the tools and editor extensions recommended for Python development:

Lesson 1: Developing comples Command-line tools

Lesson 2: Packaging and distributing your tool

Lesson 3: Logging and error handling strategies

Lesson 4: Practice Lab

Use the included practice lab to apply the content you've learned in this week. Follow the steps to create your own repository and apply the requirements to complete the lab.

Course recommendations

This repository and video course focuses on the development side of command-line tools in Rust. It uses Visual Studio Code as the editor of choice. You can use any editor you like, but the instructions in this repository will be for VS Code.

These are all the tools and editor extensions I recommend you install to get started:

As part of your development workflow, I highly suggest you use the following programs in the terminal regularly:

  • cargo fmt - Formats your code to the Rust standard
  • cargo clippy - Lints your code and helps you find errors and potential issues
  • cargo check - Checks your code for errors and allows you to fix them before compiling (which means its faster!)

Resources

Explore additional content that you can use to learn more about the topics covered in this course.

Coursera Courses

O'Reilly Courses and Books

About

Create advanced Rust CLIs using examples

License:MIT License


Languages

Language:Rust 81.4%Language:Dockerfile 18.6%