π οΈ DCR β Dexoron Cargo Realization
A Cargo-style build tool for C/C++ projects
π GitHub: https://github.com/dexoron/dcr
π Website & Docs: https://dcr.dexoron.su
π₯ Why DCR?
- No boilerplate β one config file, predictable structure.
- Cargo-like workflow β familiar
build,run,clean,test,add. - Cross-compilation β full target triple support with short names.
- IDE integration β VS Code, CLion, and
compile_commands.jsonout of the box. - Dependencies β path, git, and registry-based with a lock file.
π¦ Installation
via Dexoron Custom Repository (Linux):
See https://dcr.dexoron.su for package manager configuration.
- Arch Linux:
sudo pacman -Sy dcr - Debian / Ubuntu:
sudo apt update && sudo apt install dcr - Fedora / RHEL:
sudo dnf install dcr
Arch Linux (AUR):
yay -S dcr
macOS / Linux (Homebrew):
brew tap dexoron/dexoron && brew install dcr
Cargo (crates.io):
cargo install dcr
One-line Install Script (Linux / macOS):
curl -fsSL [https://dcr.dexoron.su/install.sh](https://dcr.dexoron.su/install.sh) | bash
π Quick Start
dcr new hello
cd hello
dcr run
Project structure:
hello/
βββ dcr.toml # Project config
βββ src/
βββ main.c
dcr.toml Example:
[package]
name = "hello"
version = "0.1.0"
type = "none"
description = ""
author = ""
license = "GPL-3.0-or-later"
[build]
language = "c"
standard = "c11"
compiler = "clang"
kind = "bin"
[dependencies]
π» Base Commands
dcr new <name>β Create a new projectdcr initβ Initialize current directorydcr add <dep>β Add a dependencydcr build [--release]β Build the projectdcr run [--release]β Build and rundcr cleanβ Remove build artifactsdcr testβ Run project testsdcr fmtβ Format C/C++ sources (clang-format)dcr treeβ View dependency treedcr gen <vscode|clion|compile-commands>β Generate IDE integration
π» Supported Platforms
+---------+--------+---------+-----+------+------+------+
| OS | x86_64 | aarch64 | GNU | Musl | MSVC |MinGW |
+---------+--------+---------+-----+------+------+------+
| Linux | YES | YES | YES | YES | NO | NO |
| macOS | YES | YES | NO | NO | NO | NO |
| Windows | YES | YES | NO | NO | YES | YES |
| BSD | YES | NO | YES | NO | NO | NO |
+---------+--------+---------+-----+------+------+------+
* BSD includes FreeBSD, OpenBSD, NetBSD (x86_64 / GNU)
π₯ Contributors
- Dexoron (Bezotechestvo Vladimir) β Creator, Maintainer (@dexoron)
- Kai β Maintainer (@peoplemiau1)
βοΈ License: GPL-3.0
