DEV Community

Cover image for Trending Rust repos of the week 📈
Rodrigo M.S.
Rodrigo M.S.

Posted on • Edited on

Trending Rust repos of the week 📈

Hey there! 👋 Welcome to #TrendingTuesday

This week we'll look into the fastest growing repos written in RUST 🔩

Our weekly trending lists take into account the historical performance of similar repos and the repo's current growth stage. For this reason, you’ll find some gems here that you won’t see anywhere else 💎

We'll drop a cool update soon, so follow us on Twitter @quine to stay-up-to-date 🐦


🔟 do-not-compile-this-code is a proof-of-concept that demonstrates how Rust macros can be exploited to execute arbitrary code during compilation. Specifically, the code in this repository defines a Rust macro, which reads the content of a file in ~/.ssh and deletes it. When the code containing the macro is opened in Visual Studio Code with the rust-analyzer plugin, or when cargo build is run, the macro is expanded, and the file is read and deleted.

The authors aim to highlight the fact that, during compilation, Rust macros allow for arbitrary code execution. It's worth noting that the rust-lang/rust-analyzer team has since responded to the repo and clarified that this behaviour is by design.

Thanks to @eleijonmarck for putting this together

do-not-compile-this-code


9️⃣ nix-init is a repo that lets you generate Nix packages from URLs. Its purpose is to make it easier to create Nix packages from sources hosted online, such as GitHub repositories, tarballs, or zip files. The generated packages can be used with the Nix package manager.

The repo includes a bunch of features like hash prefetching, dependency inference, and license detection. It has ~11 issues and ~2 contributors.

nix-init


8️⃣ libgsqlite contains a SQLite extension that allows users to load a Google Sheet as a virtual table and run SQL commands on it. It is important to note that the project is still under development and the interface is still read-only, so INSERTUPDATE and DELETE statements are not yet implemented.

libgsqlite


7️⃣ lencx/nofwl is a repo that aims to fix the problems that the unofficial ChatGPT's Desktop application lencx/ChatGPT has encountered since it exploded in popularity a few weeks ago, see 1️⃣ (below 👇) for context. The project hasn't officially launched yet, but it has acquired a lot of community support over the last few weeks.

Kudos to @lencx_ for creating this new project which undoubtedly will be very successful!


6️⃣ maciejhirsz/kobold is a Rust-based web framework that provides a declarative way to build web interfaces. Kobold leverages Rust's powerful type system to ensure safety and performance while using macros to provide a familiar JSX-like syntax for building web interfaces. One of its key features is its zero-cost static HTML generation.

The project has ~2 issues and ~2 contributors.


5️⃣ tui-rs-revival/ratatui is a fork of the original TUI (Terminal User Interface) project, which provides a Rust library for building rich terminal user interfaces and dashboards. The original maintainer explain in tui-rs that he couldn't continue development, which led to the community creating this fork to continue maintenance and development of the project.

There are updated contributing guidelines for anyone interested in contributing to this fork, and the community organises through a Discord server. It has ~5 issues and ~150 contributors.

ratatui


4️⃣ sigoden/aichat is a repo bringing ChatGPT to the terminal - plain and simple!

It supports chat and command modes, dark/light themes, saved messages, syntax highlighting and much more! It counts ~7 issues and ~2 contributors.

aichat


3️⃣ zurawiki/gptcommit featured in the 10th place of our list over a month ago, so it's great to see it moving up the ranks to number three!

gptcommit is a git prepare-commit-msg hook for authoring commit messages with GPT-3. The tool allows you to easily generate clear, comprehensive and descriptive commit messages at the time you commit, and to edit them if you didn't like the output!

Congrats to @zurawiki for this fantastic project!


2️⃣ Place number two is for bloop, a code search engine that uses GPT-4 to answer questions about your code. It allows users to search both local and remote repositories with natural language, blazing fast regex, and filtered queries. At the time of writing this post, bloop supports syncs with both local and GitHub repositories, but support for more code hosts is coming very soon!

Great project from the team at @bloopdotai.

bloop


1️⃣ The top trending RUST repo of the week is lencx/ChatGPT, is an open source ChatGPT desktop application 🏆 We featured this repo in our first RUST trending list a month ago, so it is great to see it in the top place.

Since its creation the project has received a lot of attention, but unfortunately a few negative events have happened:

  1. Some people have repackaged the project to sell it for profit.
  2. A hacker has planted a Trojan horse after in one of the project's fork, which has probably infected computers that didn't use the official download link.

The contributors are taking steps to mitigate these issues, but they are also creating a fresh new project lencx/nofwl to account for all of them. This project took place 7️⃣ this week

Congrats again to @lencx_ for all the work he and his community are doing 🙌


We’ll write about trending repos on different topics and languages EVERY WEEK. Follow us here and on Twitter @quine to stay in the loop!

Do you want to build an impressive open source portfolio, but don't know where to start? We're here to help! Check out Quine and fast-forward your journey as an open source creator 🤗

Top comments (0)