익숙한 명령어
build, run, test, clean, add, fmt 등. 알 수 없는 명령어 체인은 없습니다.
DCR은 C와 C++에 현대적이고 예측 가능한 워크플로를 제공합니다. 프로젝트를 한 번만 정의하면 의존성을 관리하고, 어디서든 동일한 간단한 명령어로 빌드할 수 있습니다.
$ dcr new myapp
Creating project `myapp` Created directory `myapp` Created dcr.toml Created src/main.c Initialized git repository Created project `myapp` info: Next steps: cd myapp dcr run
$ cd myapp
$ dcr run
project myapp (debug, x86_64-unknown-linux-gnu) compile myapp v0.1.0 [1/1] done in 0.24s run /home/dexoron/tmp/myapp/target/x86_64-unknown-linux-gnu/debug/myapp Hello World!
$
빌드에 필요한 모든 것.하나의 도구. 하나의 설정. 하나의 워크플로.
build, run, test, clean, add, fmt 등. 알 수 없는 명령어 체인은 없습니다.
로컬 경로, Git 저장소, 레지스트리를 사용할 수 있습니다. DCR은 락 파일로 의존성을 재현 가능하게 유지합니다.
프로젝트 설정을 다시 작성하지 않고도 Linux, Windows, macOS, BSD 등 다양한 플랫폼을 대상으로 빌드할 수 있습니다.
compile_commands.json을 생성하고 VS Code, CLion 등 원하는 에디터를 계속 사용하세요.
빌드 설정을 dcr.toml 하나에 보관하세요. 흩어진 스크립트도, 설정 발굴 작업도 필요 없습니다.
오프라인에서 도움이 필요하신가요? man dcr이 해결해 드립니다.
1분 안에 C/C++ 프로젝트를 실행해 보세요.
표준 디렉터리 구조를 갖춘 깨끗한 C/C++ 작업 공간을 만듭니다.
$ dcr new myapp
Creating project `myapp` Created project `myapp` info: Next steps: cd myapp dcr run
$ cd myapp
사람이 읽기 쉬운 간단한 설정. CMake 문법은 필요 없습니다.
[package] name = "myapp" version = "0.1.0" dcr-version = "0.9.6" [build] language = "c" standard = "c11" compiler = "clang" kind = "bin" [dependencies]
명령어 하나로 의존성을 컴파일하고 실행 파일을 실행합니다.
$ dcr run
project myapp (debug, x86_64-unknown-linux-gnu) compile myapp v0.1.0 [1/1] done in 0.24s run /home/user/myapp/target/x86_64-unknown-linux-gnu/debug/myapp Hello World!
사용자 정의 빌드 플래그, Qt / MO 처리, 베어메탈 환경이 필요하신가요?
문서 살펴보기빌드할 준비가 되셨나요?
curl -fsSL https://sh.dcr-tool.ru | sh irm https://ps1.dcr-tool.ru | iex curl -fsSL https://sh.dcr-tool.ru | sh yay -S dcr brew tap dexoron/dexoron && brew install dcr nix profile install github:dexoron/dcr cargo install dcr 그다음:
dcr --version DCR — C/C++와 합리적인 빌드 워크플로 사이의 빠진 퍼즐 조각.