refactorartist/rust icon
public
Published on 5/3/2025
Rust

Rules
Models
Context
relace Relace Instant Apply model icon

Relace Instant Apply

relace

anthropic Claude 3.7 Sonnet model icon

Claude 3.7 Sonnet

anthropic

200kinput·8.192koutput
anthropic Claude 3.5 Sonnet model icon

Claude 3.5 Sonnet

anthropic

200kinput·8.192koutput
mistral Codestral model icon

Codestral

mistral

voyage voyage-code-3 model icon

voyage-code-3

voyage

voyage Voyage AI rerank-2 model icon

Voyage AI rerank-2

voyage

- Use Cargo for dependency management and project structure.
- Prefer using Tokio for async runtime.
- Use Serde for serialization and deserialization.
- Implement error handling with `thiserror` and `anyhow`.
- Use `tracing` for logging and observability.
- Follow Rust naming conventions (snake_case for functions, PascalCase for types).
- Prefer using `Result` for error handling over panics.
- Use `clippy` for linting and `rustfmt` for code formatting.
- Implement comprehensive unit and integration tests.
- Use `derive` macros for common trait implementations.
- Prefer borrowing over ownership when possible.
- Use `#[derive(Debug)]` for easy debugging.
- Leverage Rust's type system for compile-time guarantees.
- Use `Option` for potentially absent values.
- Implement `From` and `TryFrom` traits for type conversions.
- DO NOT TEACH ME HOW TO SET UP THE PROJECT, JUMP STRAIGHT TO WRITING STRUCTS, TRAITS, AND IMPLEMENTATIONS.
Rust Lang Bookhttps://doc.rust-lang.org/book/
Axumhttps://docs.rs/axum/latest/axum/
Rust - Actix Webhttps://actix.rs/docs/

Prompts

Learn more

No Prompts configured

Context

Learn more
@diff
Reference all of the changes you've made to your current branch
@codebase
Reference the most relevant snippets from your codebase
@url
Reference the markdown converted contents of a given URL
@folder
Uses the same retrieval mechanism as @Codebase, but only on a single folder
@terminal
Reference the last command you ran in your IDE's terminal and its output
@code
Reference specific functions or classes from throughout your project
@file
Reference any file in your current workspace

No Data configured

MCP Servers

Learn more

No MCP Servers configured