Zum Hauptinhalt springen
Dieser Inhalt ist noch nicht in Ihrer Sprache verfügbar und wird auf Englisch angezeigt.

Rust Best Practices

Skill Verifiziert Aktiv

Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook. Use this skill when: (1) writing new Rust code or functions, (2) reviewing or refactoring existing Rust code, (3) deciding between borrowing vs cloning or ownership patterns, (4) implementing error handling with Result types, (5) optimizing Rust code for performance, (6) writing tests or documentation for Rust projects.

Zweck

To guide developers in writing idiomatic, performant, and robust Rust code by adhering to established best practices.

Funktionen

  • Idiomatic Rust coding styles
  • Performance optimization techniques
  • Robust error handling with Result types
  • Effective testing strategies
  • Guidelines for generics and dispatch
  • Best practices for documentation and comments

Anwendungsfälle

  • Writing new Rust code or functions
  • Reviewing or refactoring existing Rust code
  • Deciding between borrowing vs cloning or ownership patterns
  • Implementing error handling with Result types
  • Optimizing Rust code for performance
  • Writing tests or documentation for Rust projects

Nicht-Ziele

  • Providing a full Rust language tutorial
  • Automating Rust code writing directly
  • Replacing static analysis tools like clippy (though it references them)

Installation

Zuerst Marketplace hinzufügen

/plugin marketplace add apollographql/skills
/plugin install skills@apollo-marketplace

Qualitätspunktzahl

Verifiziert
95 /100
Analysiert about 23 hours ago

Vertrauenssignale

Letzter Commit2 days ago
Sterne62
LizenzMIT
Status
Quellcode ansehen

Ähnliche Erweiterungen

Dart Matcher Best Practices

100

Best practices for using `expect` and `package:matcher`. Focuses on readable assertions, proper matcher selection, and avoiding common pitfalls.

Skill
flutter

Supabase Postgres Best Practices

99

Postgres-Optimierungs- und Best-Practice-Anleitungen von Supabase. Verwenden Sie diesen Skill beim Schreiben, Überprüfen oder Optimieren von Postgres-Abfragen, Schema-Designs oder Datenbankkonfigurationen.

Skill
supabase

Cleanup Defensive

99

Remove pointless try/catch blocks and defensive guards that hide errors or add no value. Preserves catches at true system boundaries (HTTP handlers, CLI entry, message consumers). Use when the user asks to remove try/catch, fix error hiding, clean up defensive code, or stop swallowing errors. Example queries — "remove pointless try/catch", "we're swallowing errors", "stop hiding bugs in catch blocks", "clean up the defensive code".

Skill
raintree-technology

Neon Postgres

100

Anleitungen und Best Practices für die Arbeit mit Neon Serverless Postgres. Beinhaltet den Einstieg, lokale Entwicklung mit Neon, Auswahl einer Verbindungsmethode, Neon-Funktionen, Authentifizierung (@neondatabase/auth), PostgREST-ähnliche Daten-API (@neondatabase/neon-js), Neon CLI und die Neon Platform API/SDKs. Zur Beantwortung aller Neon-bezogenen Fragen.

Skill
neondatabase

Sdk Dx

100

Design SDKs that developers love to use—APIs that feel native, error messages that guide, and experiences that reduce friction. This skill covers creating SDKs that drive adoption through exceptional developer experience rather than aggressive marketing. Trigger phrases: "SDK design", "developer experience", "API design", "SDK DX", "error messages", "type safety", "IDE integration", "SDK versioning", "migration guides", "client library design", "making SDKs feel native", "SDK best practices"

Skill
jonathimer

Csharp Async

100

Get best practices for C# async programming

Skill
github