moai-lang-rust

Provide Rust patterns for Axum, Tokio, SQLx, and WebAssembly targets.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/hnabyz-bot/gate_drv --skill moai-lang-rust-hnabyz-bot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-lang-rust
Source: https://github.com/hnabyz-bot/gate_drv/tree/main/.claude/skills/moai-lang-rust
Command: npx skills add https://github.com/hnabyz-bot/gate_drv --skill moai-lang-rust-hnabyz-bot

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers craft high-performance, memory-safe Rust software by providing concise patterns, architecture guidance, and practical examples that align with modern Rust ecosystems (Axum, Tokio, SQLx, and WebAssembly).

Core Features & Use Cases

  • Axum + Tokio API patterns: routing, state management, and asynchronous handlers for scalable web services.
  • SQLx data access patterns: compile-time checked queries, connection pooling, and transaction examples.
  • Memory-safe systems programming: guidance on safe concurrency, lifetimes, and wasm targets for high-performance apps.
  • Use Case: design a fast REST API in Rust that can run in a WASM environment and interact with a PostgreSQL database.

Quick Start

Install Rust 1.92+, review the provided examples.md and reference.md to see concrete usage, and initialize a new project with Axum and Tokio templates to begin exploration.

Frequently Asked Questions about moai-lang-rust

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

FAQPage Schema
How do I build a fast REST API in Rust using Axum and Tokio?

To build an Axum and Tokio REST API in Rust, use asynchronous handlers, routing, and state management patterns to ensure scalable web services. This approach provides high-performance, memory-safe systems programming for modern API servers.

How do I ensure memory safety with async concurrency in Rust?

Ensure memory safety with async concurrency in Rust by applying safe concurrency patterns, managing lifetimes carefully, and leveraging Tokio's asynchronous runtime. This guarantees high-performance execution without data races or unsafe memory access.

Can I use Rust with WebAssembly targets for high-performance apps?

Yes, you can compile Rust to WebAssembly targets for high-performance applications. This allows your memory-safe systems logic to run efficiently in browser or edge WASM environments while maintaining native-speed execution.

What's the best way to handle PostgreSQL data access in Rust?

The best way to handle PostgreSQL data access in Rust is using SQLx for compile-time checked queries, connection pooling, and transaction management. This prevents runtime SQL errors and ensures efficient database interactions.

Does this Rust guidance support version 1.92 and above?

Yes, this Rust guidance fully supports version 1.92 and above. It provides proven patterns and pragmatic examples specifically aligned with modern Rust ecosystems like Axum, Tokio, SQLx, and WebAssembly for 1.92+ compatibility.