rust-pro

Optimize Rust code for performance and memory safety.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/roger8b/slideflow --skill rust-pro-roger8b
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-pro
Source: https://github.com/roger8b/slideflow/tree/main/.agent/skills/rust-pro
Command: npx skills add https://github.com/roger8b/slideflow --skill rust-pro-roger8b

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses complex Rust development challenges, providing expertise in modern async patterns, advanced type systems, and production-ready systems programming.

Core Features & Use Cases

  • Modern Rust Expertise: Master Rust 1.75+ with advanced async programming, systems-level performance, and production-ready applications.
  • Async Programming: Advanced async/await patterns with Tokio runtime and stream processing.
  • Type System: Deep knowledge of advanced trait implementations, associated types, and generic associated types.
  • Performance & Systems Programming: Zero-cost abstractions, SIMD programming, and memory mapping.
  • Web Development: Modern web frameworks and HTTP/2/3 support with hyper.
  • Error Handling: Comprehensive error handling with thiserror and anyhow.
  • Testing & Quality Assurance: Unit, property-based, and integration testing with proptest, quickcheck, and mockall.

Quick Start

Use the rust-pro skill to optimize and refactor your Rust code for better performance and memory safety.

Frequently Asked Questions about rust-pro

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

FAQPage Schema
How do I implement advanced async patterns with Tokio in Rust?

To implement async patterns in Rust, use the Tokio runtime for stream processing and async/await operations. This approach enables high-performance concurrent systems programming with zero-cost abstractions while maintaining memory safety.

What is the best way to handle errors in a Rust web service?

The best way to handle errors in Rust web services is combining thiserror for custom error types and anyhow for application-level error handling. This ensures comprehensive error management while integrating smoothly with modern web frameworks.

How do I optimize Rust code for systems-level performance and SIMD?

To optimize Rust code for systems-level performance, leverage zero-cost abstractions, SIMD programming, and memory mapping. These techniques allow you to build high-performance systems while fully utilizing modern hardware capabilities.

Does Rust support advanced type systems like associated types and generics?

Rust supports advanced type systems through trait implementations, associated types, and generic associated types. Mastering these features allows developers to create flexible, reusable code architectures for complex systems programming.

How do I test Rust applications using proptest and mockall?

To test Rust applications, use proptest and quickcheck for property-based testing, alongside mockall for mocking dependencies. This combination ensures robust unit and integration testing for production-ready applications.

Can I build modern web services with HTTP/2 and HTTP/3 support in Rust?

You can build modern Rust web services with HTTP/2 and HTTP/3 support using hyper. This enables the development of high-performance, production-ready web frameworks that handle advanced network protocols efficiently.