docs: update CONTRIBUTING.md to include guidelines for Rust code formatting and quality checks

This commit is contained in:
Tunglies
2025-05-20 23:09:25 +08:00
Unverified
parent 29fd97e402
commit b6db209670

View File

@@ -96,6 +96,24 @@ pnpm portable
## Contributing Your Changes
#### Before commit your changes
If you changed the rust code, it's recommanded to execute code style formatting and quailty checks.
1. Code style formatting
```bash
$ clash-verge-rev: cd src-tauri
$ clash-verge-rev/src-tauri: cargo fmt
```
2. Code quailty checks
```bash
$ clash-verge-rev: pnpm clippy
```
Once you have made your changes:
1. Fork the repository.