From e90eda5fa81e429b81364ed04fbf1f038ff15f8f Mon Sep 17 00:00:00 2001 From: Dexoron Date: Sat, 8 Aug 2026 15:03:11 +0800 Subject: [PATCH] New translations dcr-toml.mdx (Russian) [ci skip] --- .../ru-RU/docs/reference/dcr-toml.mdx.mdx | 30 ++++++++++++++----- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/docs-crowdin-export/ru-RU/docs/reference/dcr-toml.mdx.mdx b/docs-crowdin-export/ru-RU/docs/reference/dcr-toml.mdx.mdx index 6f577ca..d35722c 100644 --- a/docs-crowdin-export/ru-RU/docs/reference/dcr-toml.mdx.mdx +++ b/docs-crowdin-export/ru-RU/docs/reference/dcr-toml.mdx.mdx @@ -40,23 +40,39 @@ sidebar_label: Обзор dcr.toml ## [пакет] -| Поле | Обязательное | Описание | -| ---------- | ------------ | ------------------------------------------- | -| `имя` | да | Имя проекта | -| `версия` | да | Семантическая версия | -| `тип` | no | `app`, `lib`, `none` (defaults to `"none"`) | -| `лицензия` | нет | SPDX-идентификатор лицензии | -| `автор` | нет | Автор | +| Поле | Обязательное | Описание | +| ------------- | ------------ | --------------------------------------------------------------------------------------------------------------- | +| `имя` | да | Имя проекта | +| `версия` | да | Semantic version of the **project** | +| `dcr-version` | no | Semver of the **dcr tool** this project targets. Written by `dcr new` / `dcr init` to the current tool version. | +| `тип` | нет | `app`, `lib`, `none` (defaults to `"none"`) | +| `лицензия` | нет | SPDX-идентификатор лицензии | +| `автор` | no | Автор | ```toml [package] name = "my-app" version = "0.1.0" +dcr-version = "0.8.4" type = "app" license = "MIT" author = "John Doe" ``` +### `package.dcr-version` + +Optional pin of the DCR CLI the project was written for. On every `dcr.toml` load: + +| Situation | Behaviour | +| ------------------------------ | ---------------------------------------------------------- | +| Field missing / empty | Warning: add `dcr-version` (set by `dcr new` / `dcr init`) | +| Running dcr **older** than pin | Warning: upgrade dcr (`dcr --update`) | +| Running dcr **newer** than pin | Warning: review changelog, bump the pin when ready | +| Equal | Silent | +| Invalid semver | Warning once, field ignored | + +Never fails the command — warnings only. Pre-release suffixes (`1.0.0-dev`) are ignored for comparison (`1.0.0-dev` ≡ `1.0.0`). + ## [сборка] ...