mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 23:19:36 +00:00
44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
---
|
||
sidebar_label: Команды сборки (build, run, clean)
|
||
---
|
||
|
||
# Команды сборки
|
||
|
||
## `dcr build`
|
||
|
||
Собирает проект по `dcr.toml`.
|
||
|
||
```bash
|
||
dcr build # debug профиль
|
||
dcr build --release # release профиль
|
||
dcr build --debug # явно debug
|
||
dcr build --profile custom # произвольный профиль
|
||
dcr build --target aarch64-unknown-linux-gnu
|
||
dcr build --force # пересобрать всё с нуля
|
||
dcr build --clean # clean + build
|
||
dcr build --verbose # показать команды компиляции
|
||
dcr build --workspace pkg-a # собрать конкретный пакет в workspace
|
||
```
|
||
|
||
Артефакты: `target/\<triple>/\<profile>/\<binary-name>` (Linux с явным целевым объектом).
|
||
|
||
## `dcr run`
|
||
|
||
Собирает (если исходники новее артефакта) и запускает бинарник.
|
||
|
||
```bash
|
||
dcr run
|
||
dcr run --release
|
||
```
|
||
|
||
## `dcr clean`
|
||
|
||
Удаляет директорию `target/`(или `target/\<target>/\<profile>`).
|
||
|
||
```bash
|
||
dcr clean
|
||
dcr clean --release # очистить target/release/
|
||
dcr clean --target windows # очистить target/x86_64-pc-windows-msvc/
|
||
dcr clean --all # очистить все пакеты workspace
|
||
```
|