New translations first-steps.mdx (Russian)

[ci skip]
This commit is contained in:
2026-07-06 02:21:16 +08:00
parent 9ba9cade86
commit 4a3c97d674

View File

@@ -1,17 +1,17 @@
--- ---
sidebar_label: First steps sidebar_label: Первые шаги
--- ---
# First Steps # Первые шаги
## Create a project ## Создать проект
```bash ```bash
dcr new my-app dcr new my-app
cd my-app cd my-app
``` ```
Structure: Будет создана структура:
``` ```
my-app/ my-app/
@@ -27,12 +27,17 @@ my-app/
name = "my-app" name = "my-app"
version = "0.1.0" version = "0.1.0"
type = "none" type = "none"
description=""
author=""
license = "GPL-3.0-or-later"
[build] [build]
language = "c" language = "c"
standard = "c11" standard = "c11"
compiler = "clang" compiler = "clang"
kind = "bin" kind = "bin"
[dependencies]
``` ```
## Build ## Build
@@ -43,20 +48,20 @@ dcr build
Output — `target/\<triple>/debug/my-app` (Linux) or `target/debug/my-app.exe` (Windows). Output — `target/\<triple>/debug/my-app` (Linux) or `target/debug/my-app.exe` (Windows).
Build profiles: Профиль:
```bash ```bash
dcr build --release # release build dcr build --release # релизная сборка
dcr build --debug # debug (default) dcr build --debug # дебажная (по умолчанию)
``` ```
## Run ## Запустить
```bash ```bash
dcr run dcr run
``` ```
Builds (if needed) and runs the binary. Собирает (если нужно) и запускает бинарник.
## First test ## First test
@@ -65,8 +70,8 @@ dcr test --init # create test template
dcr test # run tests dcr test # run tests
``` ```
## Formatting ## Форматирование
```bash ```bash
dcr fmt # clang-format with .clang-format dcr fmt # clang-format по .clang-format
``` ```