rust-project-setup

Bootstrap Rust projects with standardized workspace and Cargo configurations.

Updated Jan 20, 2026
One-click install
npx skills add https://github.com/Davincible/GHOSTNET --skill rust-project-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-project-setup
Source: https://github.com/Davincible/GHOSTNET/tree/main/.opencode/skill/rust-project-setup
Command: npx skills add https://github.com/Davincible/GHOSTNET --skill rust-project-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the initialization of Rust projects by providing standardized workspace configurations, tooling setups, and CI/CD scaffolds, reducing onboarding time and configuration drift.

Core Features & Use Cases

  • Workspace patterns: guidance between single-crate layouts and flat workspace structures with crates/* for scalable growth.
  • Tooling & conventions: prescribes edition (2024), MSRV, lint configurations, centralized dependency management, and reproducible builds.
  • CI/CD readiness: templates and defaults for continuous integration, testing, and performance profiling to accelerate delivery.

Quick Start

Begin by choosing your project layout and follow these bootstrap steps:

  • Create a project directory and decide between a single crate or a flat workspace.
  • Add rust-toolchain.toml pinning, a .cargo/config.toml for faster builds, and a top-level Cargo.toml.
  • Configure edition, MSRV, lint rules, and a baseline CI workflow to validate changes.

Frequently Asked Questions about rust-project-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a Rust cargo workspace for multiple crates?

To set up a Rust cargo workspace, this skill guides you in choosing a flat workspace structure with crates/* for scalable growth, configuring centralized dependency management and consistent module layouts across all crates.

What is the best way to bootstrap a Rust project with CI/CD and linting?

The best way to bootstrap a Rust project is by applying standardized lint configurations, edition 2024, and baseline CI workflow templates to validate changes, accelerating delivery and reducing configuration drift.

Do I need a rust-toolchain.toml file for reproducible Rust builds?

Yes, you need a rust-toolchain.toml file for reproducible Rust builds. This skill prescribes adding rust-toolchain.toml pinning and a .cargo/config.toml to enforce MSRV selection and achieve faster, consistent builds.

Should I use a single-crate layout or a flat workspace pattern for my Rust project?

Choosing between a single-crate layout and a flat workspace pattern depends on your growth needs. This skill provides guidance on selecting the appropriate structure, applying standardized configurations for either approach.

How does .cargo/config.toml help with Rust project optimization?

A .cargo/config.toml helps with Rust project optimization by establishing baseline profiling configurations and faster build settings. This skill scaffolds these defaults to streamline your development workflow.