mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 13:58:34 +00:00
1.2 KiB
1.2 KiB
dcr.toml overview
dcr.toml is the main project file used by DCR.
Minimal generated template
[package]
name = "hello"
version = "0.1.0"
[build]
language = "c"
standard = "c11"
compiler = "clang"
kind = "bin"
[dependencies]
dcr new and dcr init generate this structure automatically.
Required sections
[package][build][dependencies]
Workspace-only root:
[workspace]can be added to a normal root config to define members and dependency order.- Root config still requires
[package],[build], and[dependencies].
Required keys
package.namepackage.versionbuild.languagebuild.standardbuild.compilerbuild.kind
build.kind must be either bin, staticlib, or sharedlib.
Optional keys
build.targetbuild.cflagsbuild.ldflagsbuild.excludebuild.includebuild.rootsbuild.src_disablebuild.pkg_configbuild.stepsbuild.post_stepsbuild.generatedbuild.expectbuild.cleanbuild.debugbuild.release- dependency fields (
include,lib,libs,system) [toolchain]overrides (cc,cxx,as,ar,ld,uic,moc,rcc)[workspace]members[run]overrides (cmd)