mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-04 21:07:32 +08:00
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:
parent
44bdeb555a
commit
365e844b83
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user