Files
dcr/docs-crowdin-export/ru-RU/docs/commands/build-commands.mdx.mdx
2026-07-06 02:20:56 +08:00

44 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
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
```