这是indexloc提供的服务,不要输入任何密码
Skip to content

chore: .cursor/rules #10636

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .cursor/rules/no-macros.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
glob: **/*.rs
alwaysApply: false
---

Do not use macro_rules when you write Rust code.
5 changes: 5 additions & 0 deletions .cursor/rules/use-cargo-build.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
alwaysApply: true
---

When working on our Rust code, if you need to do a build, use `cargo build`, without the `--release` flag. We want to do this because debug builds give a faster feedback loop.
7 changes: 7 additions & 0 deletions .cursor/rules/use-contributing.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
alwaysApply: true
---

Make sure to read our CONTRIBUTING.md and stick with contributor guidance.

@CONTRIBUTING.md
5 changes: 5 additions & 0 deletions .cursor/rules/use-pnpm.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
alwaysApply: true
---

Whenever you need to use a JavaScript package manager, use pnpm.
5 changes: 5 additions & 0 deletions .cursor/rules/use-semantic-commits.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
alwaysApply: false
---

When creating pull requests, use semantic commits for the title. You can find acceptable patterns in @.github/workflows/lint-pr-title.yaml.
8 changes: 8 additions & 0 deletions .cursor/rules/use-valuable-comments.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
alwaysApply: true
---

Only add comments to code when they are truly valuable.

- If you are considering adding a comment restates what the code does without any further explanation, do not add the comment.
- Comments should add contextual information that can't be easily recognized by reading the code.
Loading