mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 15:20:51 +00:00
- `sharedlib` build kind (shared library output) - ASM projects (`build.language = "asm"`) - NASM and GAS backends - `build.platform` architecture hint for `-march` / `/arch` - Basic CLI integration tests
46 lines
700 B
Markdown
46 lines
700 B
Markdown
# dcr.toml overview
|
|
|
|
`dcr.toml` is the main project file used by DCR.
|
|
|
|
## Minimal generated template
|
|
|
|
```toml
|
|
[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.name`
|
|
- `package.version`
|
|
- `build.language`
|
|
- `build.standard`
|
|
- `build.compiler`
|
|
- `build.kind`
|
|
|
|
`build.kind` must be either `bin`, `staticlib`, or `sharedlib`.
|
|
|
|
## Optional keys
|
|
|
|
- `build.target`
|
|
- `build.cflags`
|
|
- `build.ldflags`
|
|
- dependency fields (`include`, `lib`, `libs`, `system`)
|