mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 13:58:34 +00:00
662 B
662 B
Dependency format
Dependencies are defined in dcr.toml under [dependencies].
Full example
[dependencies]
fmt = { path = "./third_party/fmt", include = ["include"], lib = ["lib"], libs = ["fmt"] }
Field reference
path: required dependency root path.include: optional include subpaths (absolute or relative to dep root).lib: optional library subpaths (absolute or relative to dep root).libs: optional linker library names.
Common valid compact form
[dependencies]
mylib = { path = "./libs/mylib" }
In this form DCR will try defaults for include/lib dirs and use mylib as the linker library name.