AcademyRulesDevelopment

Rust general rules

Engineering teams writing Rust applications or libraries who want Cursor to follow common Rust conventions.

  • Recommendedour rating
  • 40,892repository stars
  • CC0-1.0licence
  • 4 months agolast update
mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/rust-general.mdc -o .cursor/rules/rust-general.mdc
rust-general.mdc

Loading the file...

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

  1. 01Structure a crate into library and binary code
  2. 02Add context to errors at IO boundaries
  3. 03Avoid blocking calls inside async code

Questions about
Rust general rules.

What is Rust general rules used for?

Engineering teams writing Rust applications or libraries who want Cursor to follow common Rust conventions. 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.

How do I install Rust general rules?

Run this in your terminal: mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/rust-general.mdc -o .cursor/rules/rust-general.mdc

Is Rust general rules open source?

Yes. The code is on GitHub (PatrickJS/awesome-cursorrules) under the CC0-1.0 licence.

Is Rust general rules safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.