New translations dependency-commands.mdx (Russian)

[ci skip]
This commit is contained in:
2026-09-13 15:12:22 +08:00
parent 3200d7f719
commit 2a777d1124

View File

@@ -9,12 +9,14 @@ sidebar_label: Команды зависимостей (add, tree)
Добавляет зависимость в `dcr.toml`. Добавляет зависимость в `dcr.toml`.
```bash ```bash
dcr add fmt # поиск в реестре dcr add fmt # registry lookup
dcr add mylib ../path/to/lib # путь как источник dcr add mylib ../path/to/lib # path as source
dcr add mylib path:./lib # явный префикс пути dcr add mylib path:./lib # explicit path prefix
dcr add mylib git:https://github.com/user/repo # явный префикс git dcr add mylib git:https://github.com/user/repo # explicit git prefix
dcr add mylib github:user/repo # сокращённая запись GitHub dcr add mylib github:user/repo # GitHub shorthand
dcr add mylib gitlab:user/repo # сокращённая запись GitLab dcr add mylib gitlab:user/repo # GitLab shorthand
dcr add fmt pkg-config:fmt # system package via pkg-config
dcr add openssl pkg:openssl,libcrypto # multiple pkg-config packages
``` ```
Префиксы источника: Префиксы источника:
@@ -23,6 +25,7 @@ dcr add mylib gitlab:user/repo # сокращённая запись GitLab
* `git:` — URL адрес git-репозитория * `git:` — URL адрес git-репозитория
* `github:` — расширение `https://github.com/\<user>/\<repo>` * `github:` — расширение `https://github.com/\<user>/\<repo>`
* `gitlab:` — расширение `https://gitlab.com/\<user>/\<repo>` * `gitlab:` — расширение `https://gitlab.com/\<user>/\<repo>`
* `pkg-config:` / `pkg:` — one or more packages resolved by `pkg-config`
* `http://` / `https://` / `git@` — полный URL * `http://` / `https://` / `git@` — полный URL
Флаги: Флаги:
@@ -33,6 +36,11 @@ dcr add mylib gitlab:user/repo # сокращённая запись GitLab
Если источник не указан — DCR выполняет поиск в подключенных реестрах. A bare relative or absolute path is accepted as a path dependency. Если источник не указан — DCR выполняет поиск в подключенных реестрах. A bare relative or absolute path is accepted as a path dependency.
For `pkg-config` dependencies, the referenced packages must already be installed
and provide `.pc` files. DCR invokes `pkg-config` during the build (using
`PATH` and `PKG_CONFIG_PATH`) and forwards the returned compiler and linker
flags; it does not download or build these packages.
## `dcr tree` ## `dcr tree`
Показывает дерево зависимостей проекта. Показывает дерево зависимостей проекта.