lang-rust

Provide structured Rust patterns for Axum, Tokio, SQLx, and Serde applications.

8|Updated Mar 28, 2024
One-click install
npx skills add https://github.com/joncrangle/.dotfiles --skill lang-rust
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lang-rust
Source: https://github.com/joncrangle/.dotfiles/tree/main/dot_config/opencode/skills/lang-rust
Command: npx skills add https://github.com/joncrangle/.dotfiles --skill lang-rust

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rust development for high-performance, memory-safe systems, with practical patterns and guidance for Axum, Tokio, SQLx, and Serde.

Core Features & Use Cases

  • Patterns and templates for building scalable backends, microservices, and WebAssembly modules in Rust.
  • Guidance on async runtimes, error handling, serialization, and CLI tools with strong type safety.
  • Real-world examples demonstrating safe concurrency, SQLx transactions, and Axum handlers.

Quick Start

Install Rust 1.92+ and bootstrap a project using the included Axum, Tokio, SQLx, and Serde patterns.

Frequently Asked Questions about lang-rust

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

FAQPage Schema
How do I build a scalable web backend using Rust and Axum?

Build a scalable Rust web backend using Axum by applying structured patterns and code templates for handlers, state, and routing. This Skill provides real-world examples demonstrating safe concurrency and Axum handlers to bootstrap microservices efficiently.

What's the best way to manage async database transactions with SQLx in Rust?

Manage async database transactions with SQLx in Rust by leveraging the Tokio runtime and provided SQLx transaction templates. This Skill offers structured patterns and tested examples to ensure memory-safe database interactions within your web services.

Do I need the Rust 1.92 toolchain to use Tokio and Serde patterns?

Yes, the Rust 1.92 toolchain is required to use these Tokio and Serde patterns. This Skill specifically targets Rust 1.92+ to provide advanced structured templates for async runtimes, serialization, and high-performance application development.

How do I handle serialization and error handling in high-performance Rust applications?

Handle serialization and error handling in high-performance Rust applications by applying Serde for serialization and structured error handling patterns. This Skill provides real-world examples demonstrating strong type safety and safe concurrency for robust systems.

Can I use this Rust Skill to build CLI tooling and WebAssembly modules?

Yes, you can use this Skill to build CLI tooling and WebAssembly modules. It provides practical patterns and structured templates for high-performance, memory-safe Rust applications, covering both CLI tools and WebAssembly module compilation.

Why does my Rust async runtime fail to compile with Axum 0.8?

Rust async runtime compilation with Axum 0.8 may fail due to mismatched dependency versions or incorrect Tokio runtime setup. This Skill provides compatible Axum, Tokio, SQLx, and Serde templates to ensure correct memory-safe async backend compilation.