rust

Guide Rust development workflows to prefer cargo check over cargo build.

9|Updated Sep 24, 2022
One-click install
npx skills add https://github.com/not-matthias/dotfiles-nix --skill rust-not-matthias
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust
Source: https://github.com/not-matthias/dotfiles-nix/tree/main/modules/home/programs/cli-agents/shared/skills/rust
Command: npx skills add https://github.com/not-matthias/dotfiles-nix --skill rust-not-matthias

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rust development can suffer from slow feedback loops when building, requiring time-consuming release builds. This skill promotes a check-first workflow to speed up iteration and reduce wasted time.

Core Features & Use Cases

  • Prioritize cargo check for fast validation over full builds.
  • Use cargo run for iterative development and testing on demand.
  • Guidance for common Rust workflows, tests, clippy, and release-build cautions with safe defaults.

Quick Start

Set up a Rust project and start iterative development using the cargo check-first workflow with cargo run for testing.

Frequently Asked Questions about rust

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

FAQPage Schema
How do I speed up Rust compilation during iterative development?

Speed up Rust compilation by adopting a check-first workflow that prioritizes cargo check for fast validation over full builds, significantly reducing feedback loop times. Use cargo run for iterative testing on demand.

What is the best way to use cargo check and cargo run for everyday Rust projects?

The best way to manage everyday Rust projects is using cargo check for rapid validation and cargo run for iterative testing. This workflow provides fast feedback loops and safe development practices while iterating on features.

When should I use cargo build instead of cargo check in Rust?

Use cargo build instead of cargo check when you specifically need release builds, exercising caution with safe defaults. For standard iterative development and feature testing, prefer cargo check and cargo run to avoid time-consuming full builds.

How do I integrate clippy and rustfmt checks into my Rust workflow?

Integrate clippy and rustfmt checks into your Rust workflow using structured guidance that prepares your project for linting and formatting. This ensures safe development practices and clear guidance alongside your cargo check and cargo run iterations.

Does a check-first Rust workflow handle test execution and documentation?

Yes, a check-first Rust workflow provides structured processes for running tests and generating documentation. It guides teams through iterative testing with cargo run while maintaining fast feedback loops and safe defaults for development.