mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 22:29:32 +00:00
686 B
686 B
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]
Required keys
package.namepackage.versionbuild.languagebuild.standardbuild.compilerbuild.kind
build.kind must be either bin or staticlib.
Optional keys
build.targetbuild.cflagsbuild.ldflags- dependency fields (
include,lib,libs,system)