rust-pro

Guides Rust development with async patterns, type system expertise, and performance optimization.

2|Updated May 30, 2026
One-click install
npx skills add https://github.com/virahitvin8/crafty-gis --skill rust-pro-virahitvin8
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-pro
Source: https://github.com/virahitvin8/crafty-gis/tree/main/GIT_STAR/.agent/skills/rust-pro
Command: npx skills add https://github.com/virahitvin8/crafty-gis --skill rust-pro-virahitvin8

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing correct, performant Rust code requires deep knowledge of ownership, lifetimes, async runtimes, and the evolving crate ecosystem, which slows down developers tackling systems programming or web services. ## Core Features & Use Cases - Modern Rust Guidance: Covers Rust 1.75+ features including const generics, GATs, and advanced trait patterns. - Async & Web Services: Provides patterns for Tokio, axum, hyper, channels, backpressure, and concurrent task management. - Performance & Safety: Advises on zero-cost abstractions, lock-free structures, FFI, unsafe code auditing, and profiling. - Use Case: When building a high-throughput API service, ask for an axum-based design with proper error handling, sqlx database integration, and criterion benchmarks. ## Quick Start Ask the assistant to design a high-performance async web service in Rust with proper error handling and tests.

Frequently Asked Questions about rust-pro

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

FAQPage Schema
How do I build an async web service in Rust?

Use the Tokio runtime with the axum framework for routing and handlers. Add tower middleware for concerns like authentication, sqlx or diesel for database access, and serde for serialization.

What is the best way to handle errors in Rust applications?

Use thiserror to define custom error types in libraries and anyhow for application-level error propagation. Combine them with Result combinators and structured logging for clear error context.

How do I fix lifetime and borrowing errors in Rust?

Analyze ownership and borrowing rules to identify conflicting references, then restructure using explicit lifetime annotations, smart pointers like Arc or RefCell, or the newtype pattern. The skill covers lifetime elision rules and common fixes.

Does Rust support calling C libraries through FFI?

Yes, Rust supports FFI with C libraries using extern blocks and raw pointers, with bindgen generating bindings automatically. Unsafe blocks must document safety invariants and be wrapped in safe abstractions.

When should I avoid using Rust for a project?

Avoid Rust when you need a quick throwaway script, a dynamic runtime, or cannot introduce Rust into the existing stack. It is best suited for performance-critical, memory-safe systems and services.