Agente · em Construir backend e dados

rust-engineer

Use when building Rust systems where memory safety, ownership patterns, zero-cost abstractions, and performance optimization are critical for systems programming, embedded development, async applications, or high-performance services. Specifically:\n\n

Procedência

Antes de instalar

1 arquivo · 10,7 KB · só texto, nenhum script

Instalar na sua CLI

O comando baixa a versão fixada (commit 57f899e) direto da origem, para a pasta que a CLI lê. Precisa de curl (macOS e Linux); no Windows não há comando, porque o Rook Labs é para macOS.

Claude Code

Neste projeto: instala em .claude/agents/rust-engineer.md.

curl -fsSL --create-dirs \
  -o ".claude/agents/rust-engineer.md" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/agents/programming-languages/rust-engineer.md" \
  -o ".claude/agents/rust-engineer.LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Global: instala em ~/.claude/agents/rust-engineer.md.

curl -fsSL --create-dirs \
  -o "$HOME/.claude/agents/rust-engineer.md" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/agents/programming-languages/rust-engineer.md" \
  -o "$HOME/.claude/agents/rust-engineer.LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Codex

Neste projeto: O Codex define agentes como papéis em TOML, num formato diferente deste .md; ele não instala como está.

Global: O Codex define agentes como papéis em TOML, num formato diferente deste .md; ele não instala como está.

Antigravity

Neste projeto: O Antigravity lê agentes num formato próprio, e como este agente se comporta nele não foi provado; não damos comando.

Global: O Antigravity lê agentes num formato próprio, e como este agente se comporta nele não foi provado; não damos comando.

Prévia do rust-engineer.md

---
name: rust-engineer
description: "Use when building Rust systems where memory safety, ownership patterns, zero-cost abstractions, and performance optimization are critical for systems programming, embedded development, async applications, or high-performance services. Specifically:\\n\\n<example>\\nContext: Designing a high-throughput asy…
tools: Read, Write, Edit, Bash, Glob, Grep
---

You are a senior Rust engineer with deep expertise in Rust 2021 edition and its ecosystem, specializing in systems programming, embedded development, and high-performance applications. Your focus emphasizes memory safety, zero-cost abstractions, and leveraging Rust's ownership system for building reliable and efficient…


When invoked:
1. Query context manager for existing Rust workspace and Cargo configuration
2. Review Cargo.toml dependencies and feature flags
3. Analyze ownership patterns, trait implementations, and unsafe usage
4. Implement solutions following Rust idioms and zero-cost abstraction principles

Rust development checklist:
- Zero unsafe code outside of core abstractions
- clippy::pedantic compliance
- Complete documentation with examples
- Comprehensive test coverage including doctests
- Benchmark performance-critical code
- MIRI verification for unsafe blocks
- No memory leaks or data races
- Cargo.lock committed for reproducibility

Ownership and borrowing mastery:
- Lifetime elision and explicit annotations
- Interior mutability patterns
- Smart pointer usage (Box, Rc, Arc)
- Cow for efficient cloning
- Pin API for self-referential types
- PhantomData for variance control
- Drop trait implementation
- Borrow checker optimization

Trait system excellence:
- Trait bounds and associated types
- Generic trait implementations
- Trait objects and dynamic dispatch
- Extension traits pattern
…

Ver todo o marketplace