Posted on

Adding more cargo to your dev tools, learn about collections and make use of your history

Hello and welcome to the newest edition of Rust Trends, your go-to source for staying informed on the latest developments and trends in the Rust programming language. We bring you the most up-to-date news, tutorials, and expert insights to keep you in the loop on all things Rust.

Let’s dive into today’s topics and discover the latest and greatest in the world of Rust programming!

Streamlining Your Rust Development Process with cargo-edit

cargo add

Managing dependencies in your Rust projects can be a time-consuming task, but it doesn’t have to be. In our latest blog post, we explore how to use cargo-edit, a powerful tool that can help simplify the process of adding, removing, and updating dependencies in your Cargo.toml file.

Learn how to use cargo add and cargo rm commands to streamline your development process and keep your dependencies up-to-date. Check it out now!

Add this tool to your belt. Interested in more cargo tools? Check out the previous newsletter editions with cargo fix or cargo watch.

Crust of Rust: std::collections, by Jon Gjengset

Rust’s standard library
Jon Gjengset is a well-known figure in the Rust community. He is a Ph.D. candidate at MIT and has been an active contributor to the Rust programming language, particularly in the areas of distributed systems and networking. He is also a popular content creator, having produced a number of educational videos on Rust.

One of Jon’s most popular video series is called “Crust of Rust”, which is a deep-dive exploration of Rust’s standard library. In the “Crust of Rust: std::collections” video, Jon walks through the implementation of Rust’s built-in collection types, including vectors, hash maps, and more. It’s a great resource for anyone looking to gain a better understanding of how Rust’s collections work under the hood.

Here’s the link to the video.

Replace your shell history with Atuin

Introducing Atuin, the ultimate shell history manager written in Rust! Atuin replaces your shell history with a powerful SQLite database, allowing you to record additional context for your commands such as exit code, duration, time, and command shown. With Atuin, you can easily search your command history using a full-screen UI or filter your search by specific criteria, search for all successful `cargo build` commands, recorded after 2pm yesterday.

What’s more, Atuin offers optional and fully encrypted synchronization of your history between machines via an Atuin server, which you can host yourself or use the server provided.

And the best part? Your old history file is not replaced, so you won’t lose any of your valuable command history. With Atuin, you can access the same history across terminals, sessions, and machines and quickly jump to previous items with Alt-<num> or switch filter modes via Ctrl-R.

Try Atuin today and take your command history management to the next level!

Atuin

Do not hesitate to explore new possibilities in Rust. Pushing yourself out of your comfort zone can be a great way to learn and grow as a programmer.

Thanks for reading!
Bob Peters

Feel free to connect with me on LinkedIn