2026-05-28 15:18:03 +08:00
2026-05-28 15:18:03 +08:00
2026-05-28 15:18:03 +08:00

DCR — Dexoron Cargo Realization

A Cargo-style build tool for C/C++ projects

CI GitHub Release Platform
AUR Crates.io Homebrew
GitHub Stars License: GPL-3.0


Why DCR?

  • No boilerplate — one config file, predictable structure
  • Cargo-like workflow — build, run, clean, test, add
  • Cross-compilation — full target triple support with short names
  • IDE integration — VS Code, CLion, compile_commands.json out of the box
  • Dependencies — path, git, and registry-based with lock file

Installation

Arch Linux (AUR)
yay -S dcr
macOS/Linux(GNU) (Homebrew)
brew tap dexoron/dexoron
brew install dcr
Cargo (crates.io)
cargo install dcr
Linux / macOS (script)
curl -fsSL https://dcr.dexoron.su/install.sh | bash
Windows (PowerShell)
irm https://dcr.dexoron.su/install.ps1 | iex
From source
git clone https://github.com/dexoron/dcr.git
cd dcr && cargo build --release
ln -sf "$PWD/target/release/dcr" ~/.local/bin/dcr

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"

[build]
language = "c"
standard = "c11"
compiler = "clang"
kind = "bin"

[dependencies]

Base Commands

Command Description
dcr new <name> Create a new project
dcr init Initialize current directory
dcr build [--release] Build the project
dcr run [--release] Build and run
dcr clean Remove build artifacts

other in docs/ and dcr --help


Platforms

OS x86_64 aarch64 armv7 i686 riscv64 GNU Musl MSVC MinGW
Linux ✅ ✅ ❌ ❌ ❌ ✅ ✅ ❌ ❌
macOS ✅ ✅ ❌ ❌ ❌ ❌ ❌ ❌ ❌
Windows ✅ ✅ ❌ ❌ ❌ ❌ ❌ ✅ ✅
FreeBSD ⚠️ ⚠️ ❌ ❌ ❌ ⚠️ ❌ ❌ ❌
OpenBSD ⚠️ ⚠️ ❌ ❌ ❌ ⚠️ ❌ ❌ ❌
NetBSD ⚠️ ⚠️ ❌ ❌ ❌ ⚠️ ❌ ❌ ❌

✅ officially supported · ⚠️ community / best-effort · ❌ not supported


Documentation

Full docs at dcr.dexoron.su or in the docs/ directory.


Contributors

Name Role GitHub
👤 Dexoron (Bezotechestvo Vladimir) Maintainer, Creator @dexoron
👤 Kai Maintainer @peoplemiau1

Contributing

See CONTRIBUTING.md. Before a PR:

cargo fmt --all
cargo clippy --all-targets --all-features -- -D warnings
cargo test

GPL-3.0 — see LICENSE
Made with ❤️ by Dexoron and contributors.

Description
DCR is a utility for managing C/C++ projects in a Cargo-like style.
Readme GPL-3.0 4.5 MiB
Languages
Rust 94%
Shell 3.2%
PowerShell 2.3%
Nix 0.4%