A New AI Tool for my Rust Open Source Project

Francesco Ciulla - Jul 12 - - Dev Community

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.

Rustcrab

Setting Up Pieces Suite

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

Installed Pieces Suite

The installation process took less than a minute.

Installation Process

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

Diagnostic Access

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

Installation Choice

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.

Personalization Process

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

Personalization Preferences

Then, I set up my preferences:

Setup 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.

Search Setup

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

Data Control

Cloud Accounts & Integrations

I connected Pieces with my GitHub account.

GitHub Integration

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

Claimed Subdomain

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.

Pieces Suite UI

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

Add Material

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

Add Component

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

Rustcrab

You can find me here: Francesco Ciulla

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .