rust

Optimize Rust Cargo workspace setup to prevent excessive build cache growth and improper feature activation.

4|Updated May 6, 2025
One-click install
npx skills add https://github.com/icorbrey/dotnix --skill rust-icorbrey
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust
Source: https://github.com/icorbrey/dotnix/tree/main/modules/home/rust
Command: npx skills add https://github.com/icorbrey/dotnix --skill rust-icorbrey

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides guidelines to prevent common pitfalls in Rust Cargo workspaces, ensuring efficient development and maintainability.

Core Features & Use Cases

  • Manage Build Cache: Prevents the Cargo build cache from growing excessively, which can lead to bloated target/ directories.
  • Feature Transparency: Ensures --no-default-features is correctly applied across workspace dependencies.
  • CLI Formatting Purity: Promotes clean architectural practices by separating core logic from CLI formatting.
  • Use Case: Implementing this Skill in a Rust project can help maintain a manageable build cache size and avoid unexpected feature activation issues.

Quick Start

Run 'cargo rust activate' to integrate these principles into your Rust workspace.

Frequently Asked Questions about rust

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

FAQPage Schema
How do I stop my Cargo build cache from growing excessively in Rust workspaces?

Yes, you can enforce `--no-default-features` across Cargo workspace dependencies using this Skill. It provides guidelines to ensure feature transparency and prevent unexpected feature activation in Rust projects.

What is the best way to separate core logic from CLI formatting in Rust?

The best way to separate core logic from CLI formatting is through architectural guidelines that promote formatting purity. This Skill provides practices to maintain clean structural boundaries in Rust CLI development.

Do I need the Rust toolchain to optimize Cargo workspace setup?

Yes, you need the Rust toolchain installed and familiarity with the Cargo project structure to optimize workspace setup. This Skill requires this environment to apply its build automation and dependency management guidelines.

What causes unexpected feature activation in Cargo workspace dependencies?

Unexpected feature activation in Cargo workspace dependencies is caused by improper application of feature flags. This Skill prevents this by ensuring `--no-default-features` is correctly applied across your Rust project.

How do I activate Cargo workspace optimization guidelines for my Rust project?

To activate Cargo workspace optimization guidelines, run `cargo rust activate` in your project directory. This integrates build cache management and feature transparency principles directly into your Rust workspace.