A New AI Tool for my Rust Open Source Project

A New AI Tool for my Rust Open Source Project

Recently, I became curious about Pieces, a developer tool. Since I started a new open-source project, I thought it was a good opportunity to test something new in the AI ecosystem.

Introducing Rustcrab

Before diving into Pieces, I’d like to introduce you to Rustcrab. Rustcrab is an open-source repository designed to be the ultimate resource hub for Rust developers. The project aims to provide meaningful information about the Rust community, resources, news, projects, dev tools, and more. You can check out Rustcrab on GitHub: Rustcrab.

Setting Up Pieces Suite

I installed Pieces on my Windows machine (but I’m sure other options are available).

The installation process took less than a minute.

I was prompted to allow Pieces Suite to access diagnostic information about my app, and I decided to trust them.

Then, I had the choice of manual or automatic installation. I went with the automatic install.

The installation process started, installing the following components:

Pieces OS: A local database server that enables Pieces to run quickly. It works both offline and inside the IDE.

Pieces for Developer: Used to store code snippets, file fragments, images, and more. It requires Pieces OS to work.

Personalizing Pieces Suite

Next, I personalized my Pieces Suite setup.

I chose Dark Mode (it was the default option, well done).

Personalization Preferences

Then, I set up my preferences:

Areas: DevOps, Frontend, Backend, and Blockchain

Languages: Rust, JavaScript, TypeScript, and Python

Toolchains: VSCode and Google Chrome

Level: Advanced

Project Type: Individual (for now)

Search, Reference, & Reuse

I was prompted to set the hub for search and materials.

I chose the default generative workflow and blended search as the default search engine. For sort mode, I went with the recommended option (Recent).

Auto-Enrichment & Copilot

For control over data, I chose:

Blended (recommended)
Mistral 7b as the default LLM runtime
No specific automatic material enrichment levels
Added the local repository for my project Rustcrab

Cloud Accounts & Integrations

I connected Pieces with my GitHub account.

I also claimed my cloud’s subdomain (francesco.pieces.cloud).

The onboarding process was now complete!

Pieces Suite in Action

Here’s how Pieces Suite looked the first time I opened it. I am definitely impressed by the UI.

I then clicked on the “Add Material” button and chose “Create from scratch.”

I added an existing component I used in my current project—a component that gets a repository’s GitHub stars—to the “Rustcrab” project.

Conclusion

Thanks for reading! I went through the Pieces Suite onboarding process and was impressed by the UI and features. I will definitely use it in my future projects.

This was just the installation and onboarding process; I might share something more in the upcoming articles.

If you have any comments, leave them below.

You can check out the Rustcrab project on GitHub: Rustcrab

You can find me here: Francesco Ciulla

Please follow and like us:
Pin Share