mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 12:38:30 +00:00
8e1fb60692b8c4c490d7c6133bcd733d2ab4bf69
Add Linux i686, armv7, and riscv64 architectures support to release workflow and installation script
Add Linux i686, armv7, and riscv64 architectures support to release workflow and installation script
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.jsonout of the box - Dependencies — path, git, and registry-based with lock file
Installation
| Linux (Dexoron Packages) |
See https://dcr.dexoron.su for settings youre packages manager Arch Linux: Debian/Ubuntu: Fedora/RHEL: |
| Arch Linux (AUR) |
|
| macOS/Linux(GNU) (Homebrew) |
|
| Nix (flake) |
|
| Cargo (crates.io) |
|
| Linux / macOS (script) |
|
| BSD (script) |
|
| Windows (PowerShell) |
|
| From source |
|
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 add <dep> |
Add a dependency |
dcr build [--release] |
Build the project |
dcr run [--release] |
Build and run |
dcr clean |
Remove build artifacts |
dcr test |
Run project tests |
dcr fmt |
Format C/C++ sources (clang-format) |
dcr tree |
View dependency tree |
dcr gen <vscode|clion|compile-commands> |
Generate IDE integration |
dcr setup |
Initialize DCR registry |
other in docs/ and dcr --help
Platforms(pre-build source)
| 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
Languages
Rust
94%
Shell
3.2%
PowerShell
2.3%
Nix
0.4%