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

Rules
Models
Context
40kinput·32koutput
200kinput·8.192koutput
200kinput·8.192koutput

MCP Servers

Learn more

No MCP Servers configured

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