Skill

Build High-Performance Rust Applications

Expert Rust guidance for modern async, systems-level performance, and memory-safe production code.

Works with githubtokioaxumtowerhyper

79
Spark score
out of 100
Updated last month
Version 13.1.0

Add to Favorites

Why it matters

Leverage expert Rust 1.75+ development for building high-performance, memory-safe services, libraries, and systems tooling. This skill excels at solving complex ownership, lifetime, and async design challenges, optimizing for production readiness.

Outcomes

What it gets done

01

Implement modern Rust features for robust applications.

02

Optimize performance with advanced async programming and memory safety.

03

Develop and test production-ready Rust services and libraries.

04

Resolve complex ownership, lifetime, and concurrency issues.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/ag-rust-pro | bash

Overview

Rust Pro

Expert-level guidance for modern Rust development: advanced type-system features, ownership and memory management, async programming on Tokio, performance and systems programming, web-service frameworks, and unsafe code and FFI. Use it when building Rust services, libraries, or systems tooling, or solving ownership, lifetime, or async design issues needing memory safety and performance together.

What it does

Expert-level guidance for modern Rust (1.75+) development: advanced type-system features (const generics, generic associated types, procedural and declarative macros), ownership and memory management (borrowing, Rc/Arc/weak references, Box/RefCell/Mutex/RwLock, custom allocators, zero-sized types), async programming and concurrency on Tokio (streams, mpsc/broadcast/watch channels, the axum/tower/hyper web stack, backpressure handling), performance and systems programming (SIMD via portable-simd, lock-free atomics, cache-friendly data structures, profiling with perf/valgrind/cargo-flamegraph), web-service development (axum, warp, actix-web, HTTP/2-3 via hyper, sqlx/diesel, serde, async-graphql, tonic gRPC), error handling (thiserror, anyhow, Result/Option combinators), testing (built-in tests, proptest/quickcheck property-based testing, mockall, criterion.rs benchmarks, tarpaulin coverage), unsafe code and FFI (safe abstractions, bindgen, invariant documentation), and modern tooling (Cargo workspaces, Clippy, rustfmt, cargo-audit/deny/outdated).

When to use - and when NOT to

Use it when building Rust services, libraries, or systems tooling, or solving ownership, lifetime, or async design issues that need memory-safety guarantees alongside performance. Not a fit for a quick throwaway script, a dynamic-runtime use case, basic Rust syntax questions, or a stack that cannot introduce Rust at all.

Inputs and outputs

Input: a Rust design or implementation problem - a new service, a performance hotspot, a lifetime or ownership error, or an unsafe/FFI boundary needing a safe wrapper. Output: type-safe APIs with comprehensive error handling, efficient implementations using zero-cost abstractions, unit/integration/property-based tests, documented safety invariants for any unsafe code, and profiling-driven performance optimizations - following a response approach that analyzes requirements, designs the API, implements it, tests it, and documents unsafe blocks in that order.

Integrations

Centers on the Tokio async runtime and its ecosystem (axum, tower, hyper), web frameworks warp and actix-web, database crates sqlx and diesel, serde for serialization, thiserror/anyhow for error handling, proptest/quickcheck/mockall/criterion.rs/tarpaulin for testing, and Cargo tooling (Clippy, rustfmt, cargo-audit/deny/outdated, bindgen for FFI).

Who it's for

Developers building performance-critical, memory-safe Rust services or libraries who need expert-level guidance across async, systems programming, and the modern Rust ecosystem, not basic syntax help.

Its stated behavioral traits favor leveraging the type system for compile-time correctness, avoiding runtime overhead through zero-cost abstractions, and documenting unsafe code with explicit safety invariants over ad hoc comments. Representative requests it's built to handle include designing a lock-free concurrent data structure with atomic operations, building a safe FFI wrapper around a C library, and debugging lifetime issues in complex generic code. It likewise expects to design streaming data processors with backpressure handling and plugin systems combining dynamic loading with compile-time type safety.

FAQ

Common questions

Discussion

Questions & comments ยท 0

Sign In Sign in to leave a comment.