Cursor · PluginsLenguajes#8
Rust
Ownership, Result-based errors and async with Tokio.
by Prompt Studio
rust
Contents
Where it goes: .cursor/rules/rust.mdc
---
description: Convenciones y buenas prácticas de Rust
globs: **/*.rs
alwaysApply: false
---
- Prefiere préstamos (`&T`) a clonar; clona solo cuando sea necesario.
- Errores con `Result` y `thiserror` (librerías) o `anyhow` (binarios); nada de `unwrap()` fuera de pruebas.
- Async con Tokio; no bloquees el runtime con I/O síncrona.
- Pasa `cargo clippy -- -D warnings` y `cargo fmt`.
More in Plugins
Next.js
App Router, Server Components, Server Actions and caching.
Python
Typing, package layout and tests with pytest.
React + TypeScript
Function components, hooks and strict typing.
Expo / React Native
Expo Router, styling and mobile performance.
Go
HTTP APIs, error handling and context.
Tailwind + shadcn/ui
Utility classes, design tokens and accessible components.