howto-code-in-rust

Community

Ensure Rust code quality and maintainability with best practices.

AuthorTK-Evans01
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides guidance for writing, reviewing, and modifying Rust code, ensuring adherence to functional programming and best practices.

Core Features & Use Cases

  • Error Handling: Structured error enums with thiserror and user-friendly diagnostics with miette.
  • Type System Patterns: Encodes invariants in types using newtypes, builders, and type states.
  • Async Patterns: Guidelines for using async effectively, including runtime and backpressure management.
  • Testing and Serialization: Best practices for testing and managing serialization formats.
  • Configuration and Async: Recommendations for library crates, async runtime, and sync/async boundary management.
  • Lints and Formatting: Strategies for improving code with clippy lints and pretty_assertions.
  • Memory and Performance: Tips on avoiding cloning, streaming with iterators, and re-exports.

Quick Start

Use the howto-code-in-rust skill to generate Rust style guidelines for your new project.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: howto-code-in-rust
Download link: https://github.com/TK-Evans01/tk-harness/archive/main.zip#howto-code-in-rust

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.