What it does
A Cursor rules file with general guidance for Rust projects. It covers project structure, ownership and types, error handling with Result and Option, async and concurrency rules, and testing and quality checks, including avoiding unwrap outside tests and startup code.
Use cases
- 01Structure a crate into library and binary code
- 02Add context to errors at IO boundaries
- 03Avoid blocking calls inside async code