docs: add fast build and clean commands to contributing guide (#2842)

docs: add fast build and clean commands to contributing guide

- Added documentation for the `pnpm build:fast` command which uses Rust's fast-release profile to reduce compilation time
- Added explanation that fast builds disable optimization and LTO, resulting in larger but quicker builds
- Added documentation for the `pnpm clean` command to clean Rust build files
This commit is contained in:
Tunglies 2025-03-02 15:13:17 +08:00 committed by GitHub
parent 496aeeb06d
commit 368095d2d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -68,8 +68,24 @@ To build this project:
pnpm run build
```
For a faster build, use the following command
```shell
pnpm build:fast
```
This uses Rust's fast-release profile which significantly reduces compilation time by disabling optimization and LTO. The resulting binary will be larger and less performant than the standard build, but it's useful for testing changes quickly.
The `Artifacts` will display in the `log` in the Terminal.
### Build clean
To clean rust build:
```shell
pnpm clean
```
## Contributing Your Changes
Once you have made your changes: