From 2bc37d5960dd1b317b72da4361437247ed5e6f0b Mon Sep 17 00:00:00 2001 From: Dexoron Date: Sun, 13 Sep 2026 15:12:07 +0800 Subject: [PATCH] New translations dependencies.mdx (German) [ci skip] --- .../de-DE/docs/reference/dependencies.mdx.mdx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/docs-crowdin-export/de-DE/docs/reference/dependencies.mdx.mdx b/docs-crowdin-export/de-DE/docs/reference/dependencies.mdx.mdx index f81dbf7..4950774 100644 --- a/docs-crowdin-export/de-DE/docs/reference/dependencies.mdx.mdx +++ b/docs-crowdin-export/de-DE/docs/reference/dependencies.mdx.mdx @@ -6,7 +6,7 @@ sidebar_label: Dependencies ## Formats -The `[dependencies]` section supports three formats: +The `[dependencies]` section supports registry, path, Git, and `pkg-config` dependencies: ### String (registry) @@ -44,6 +44,23 @@ names (`libs`): dcr-math = { path = "../deps/dcr-math", include = ["include"], lib = ["lib"], libs = ["dcr-math"] } ``` +### Table (`pkg-config`) + +Use an installed `.pc` package when the library is provided by the operating system +or another system package manager. DCR invokes `pkg-config --cflags` and +`pkg-config --libs`, preserving include, library, linker, and other flags: + +```toml +[dependencies] +fmt = { pkg-config = "fmt" } +openssl = { pkg-config = ["openssl", "libcrypto"] } +``` + +The `pkg-config` executable must be available in `PATH`. The named `.pc` files must +be available through pkg-config's standard search paths or via `PKG_CONFIG_PATH`. +These dependencies are not downloaded or built by DCR; they are recorded in +`dcr.lock` with a `pkg-config+...` source. + ## Registry DCR uses a package registry for dependency lookup by name.