27 KiB
Changelog
[0.7.1] - 2026-06-02 "Мультиархитектурное расширение / The Multi-Arch Expansion"
RU
Добавлено:
- Вывод
--helpдля всех команд с цветным форматированием. - man-страницы (12 штук в
man/man1/) и их установка во всех пакетах. - Валидация имен проектов в
dcr initиdcr new(только ASCII буквы, цифры,_и-). - Метаданные
documentationиhomepageвCargo.toml. - Оптимизация сборки:
opt-level = "z", LTO,codegen-units = 1,panic = "abort",strip = true. - Поддержка новых архитектур (i686, armv7, riscv64gc, aarch64) в рабочих процессах и установочных скриптах.
- Сборка пакетов
debиrpmдля всех 5 архитектур Linux черезcargo-zigbuild. - Пакеты AUR (
dcr-dev,dcr-dev-bin) и сборка Snap в CI.
Изменено:
- Функция
validate_package_nameстала публичной. - Команды
gen,tree,fmt,setupбольше не игнорируют аргументы и используют цветной вывод. - Инструкция в README изменена с
| bashна| shдля POSIX. - Отключена архитектура Windows 32-bit (GNU) из-за проблем со сборкой.
Исправлено:
dcr new <invalid-name>создаёт директорию, затем падает — валидация теперь происходит до операций с файлами.dcr initсоздаёт dcr.toml, затем падает при невалидном имени директории — то же исправление.- Man-страницы отсутствовали после установки — теперь устанавливаются через скрипты установки, пакетные менеджеры и Homebrew.
- Ложное срабатывание на букву диска в Windows — в парсинге файлов зависимостей.
- CRLF
\r\nломает парсер зависимостей — теперь обрабатываются смешанные окончания строк. - Новая строка после обратного слеша не поглощалась — в обработке escape-последовательностей
parse_d_file.
EN
Added:
--helpfor all commands with styled headers and usage lines.- Man pages (12 troff man pages in
man/man1/) and their installation across all packaging formats. - Project name validation in
dcr initanddcr new(ASCII letters, digits,_,-only). documentationandhomepagemetadata inCargo.toml.- Release profile optimizations (
opt-level = "z", LTO,codegen-units = 1,panic = "abort",strip = true). - Linux i686, armv7, riscv64gc, aarch64 architecture support in release workflows and installation scripts.
- Multi-arch
debandrpmpackage builds for all 5 Linux architectures viacargo-zigbuild. - AUR packages (
dcr-dev,dcr-dev-bin) and Snap build in CI.
Changed:
validate_package_namemade public and callable from CLI commands directly.gen.rs,tree.rs,fmt.rs,setup.rsno longer ignore arguments and use styled output.- README install instructions changed from
| bashto| shfor POSIX compatibility. - Disabled Windows 32-bit (GNU) target due to build issues.
Fixed:
dcr new <invalid-name>creates directory then fails — validation now happens before any file operations.dcr initcreates dcr.toml then fails on invalid directory name — same fix.- Man pages missing after installation — now installed via install scripts, package managers, and Homebrew.
- Windows drive letter false positive — in dependency file parsing.
- CRLF
\r\nbreaks dependency parser — now handles mixed line endings. - Newline after backslash not consumed — in
parse_d_fileescape handling.
[0.7.0] - 2026-06-02
Added:
- OpenBSD and NetBSD target support — full platform routing with dynamically generated target triples using
std::env::consts::ARCHandstd::env::consts::OS. Affectsbuild,run,clean, and the platform module. src/platform/bsd.rs— new dedicated BSD platform module shared by FreeBSD, OpenBSD, NetBSD, providingbin_path,lib_path,elf_path,efi_path, andshared_lib_path.build.out_dirconfiguration option — custom output directory that overrides the defaulttarget/<triple>/<profile>path for final artifacts. Supported inbuild,run, and config validation.dcr fmtcommand — new CLI command that formats all C/C++ source files (*.c,*.cpp,*.h,*.hpp) insrc/andtests/usingclang-format.- Incremental linking —
needs_link()function incommon.rsthat checks whether any object file is newer than the linked output, skipping unnecessary re-linking. Implemented for all backends (unix_cc,msvc,gas,nasm). build.kind = "none"and"custom"— two new project kind types for special build scenarios where no standard artifact is produced.install_bsd.sh— dedicated POSIX-compliant install script for BSD systems (FreeBSD, OpenBSD, NetBSD) with binary download and source build modes.- Linux ARM64 support in
install.sh— addedLinux:aarch64|Linux:arm64target triple detection for pre-built binary downloads. - BSD OS detection in
install.sh— FreeBSD, OpenBSD, NetBSD detection and target triple resolution. rust-toolchain.toml— explicitstablechannel toolchain pinning.- Nix support —
flake.nixfor Nix package manager. Run vianix run github:dexoron/dcror install withnix profile install github:dexoron/dcr. Contributed by community contributor. - Snapcraft publish —
dcruppublished on Snapcraft. Install withsudo snap install dcrup. - Integration tests —
build_with_target_config(verifiesbuild.target = "linux") andbuild_with_out_dir(verifies custom output directory). get_build_string_with_profilemadepub— sorun.rscan resolve custom output directory configuration.
Changed:
build.targetsemantics changed — now strictly holds the target triple (e.g.x86_64-unknown-linux-gnu) or a short name (linux,macos,windows). No longer doubles as a custom output directory — that functionality moved tobuild.out_dir.build.standardmade optional — changed fromStringtoOption<String>. Validation only enforces non-empty for non-ASM languages. Skipped indcr.tomloutput when empty.dcr runwithout_dir— now resolves target directory respectingbuild.out_dirwhen configured, viaget_build_string_with_profile()frombuild.rs.collect_sources()returns empty vec instead of error when no source files are found, allowingkind = "none"orkind = "custom"projects to have no source files.- CI/CD release workflow refactored —
git2made target-specific (no vendored-openssl on Windows), Zig-based cross-compilation for non-x86_64 Linux targets, Arch Linux package version sanitization (dashes → dots), NetBSDgmakesymlink. - README compatibility table — FreeBSD, OpenBSD, NetBSD build/runtime status upgraded from community/best-effort to officially supported.
- Documentation rewritten — available at dcr.dexoron.su/docs or in the
docs/directory. Installation guides, commands, and reference updated to reflect current CLI and config format. - Site rewritten —
dcr-sitemigrated to Docusaurus with internationalization (i18n) support, improved navigation, and updated content across all sections. - Dev channel dependency check in
install.sh— checks forpython3orjqbefore attempting dev channel installations.
Fixed:
dcr runstdout/stderr not inherited — child process output was captured and manually printed, breaking interactive programs. Fixed by switching toCommand::status().- Release CI race condition — build matrix jobs could upload assets to a release that did not yet exist. Fixed by adding a dedicated
create-releasejob. - GHA release — stable toolchain override — resolved Rust toolchain override issues in CI.
- Arch Linux package version sanitization — version strings with dashes (e.g.
0.7.0-dev) are invalid for Arch Linuxpkgver. Fixed by replacing dashes with dots. - GPG permissions after Docker — Docker operations changed GPG directory ownership. Fixed by running
chownafter Docker commands. - RPM package artifact paths — RPM artifacts placed under
rpm/x86_64/instead offedora/x86_64/. Corrected in Dexoron Packages Index workflow. install.shJSON parsing robustness — addedjqas primary parser withpython3fallback for dev channel release lookups.
Removed:
format_roots()helper — removed fromcommon.rs. Was only used by the old error path incollect_sources().- Individual per-distro artifact download steps — three separate
actions/download-artifactsteps replaced with unifiedgh release download --clobber.
[0.6.9] - 2026-05-28
Added:
-
Dexoron Packages Index — new standalone CI workflow (
.github/workflows/dexoron-packages-index.yml) that automatically updates thedexoron/packagesrepository indexes after a release. Supports Arch Linux (repo-add), Debian (dpkg-scanpackages), and Fedora (createrepo_c). Triggered byworkflow_dispatchorworkflow_runon the Release workflow. -
Arch Linux native package (
.pkg.tar.zst) build inside the release workflow — builds from source in anarchlinux:latestDocker container using a dynamically generated PKGBUILD. -
AUR publish support — new
run_aurworkflow dispatch input andpublish-aur/publish-aur-binjobs that push PKGBUILD /.SRCINFOtoaur.archlinux.org.
Changed:
-
Release workflow refactored — Linux packages (deb, rpm, snap, arch) and BSD builds now use
strategy.matrixinstead of separate jobs. A newpublish-dexoron-packagesjob collects all package artifacts and uploads them to the GitHub Release in one step. Removed standalonebuild-arch-package,build-snap,build-deb-rpmjobs. The oldrun_arch_nativeinput is nowrun_linux_packages. -
Dexoron Packages Index workflow extracted from
release.ymlinto its own file with support for Debian and RPM repository indexes in addition to Arch. -
git2 vendoring — enabled
vendored-libgit2andvendored-opensslfeatures for reproducible CI builds without system libraries. -
cargo-generate-rpm metadata — updated to the current
package.metadata.rpmformat (usesfilestable instead ofassetsarray).
Fixed:
-
--target=<triple>no longer passed to GCC — the flag is now only injected into cflags when the resolved compiler name contains"clang". GCC rejects this flag withunrecognized command-line option. -
Workspace clean test — removed assertions for member-local
target/directories. Workspace members share the roottarget/directory, so their individualsrc/<name>/target/is never created. -
Release build test path — corrected expected directory from
target/releasetotarget/x86_64-unknown-linux-gnu/release.
[0.6.8] - 2026-05-27
Added:
-
build.cxx_standard— separate C++ language standard for.cpp/.cxx/.ccfiles. When set, overridesbuild.standardfor C++ sources. Example:[build] language = ["c", "c++"] standard = "gnu11" cxx_standard = "gnu++17" -
Variable substitution for
cflags,ldflags, andincludedirectory entries. All{version},{version_major},{name},{profile}and other step variables are now available. Example:[build] cflags = ['-DPROJECT_VERSION="{version}"'] -
FreeBSD build support in CI — new
run_bsdworkflow input andbuild-bsdjob that cross-compilesx86_64-unknown-freebsdviacargo-zigbuild.
Changed:
- License changed from MIT to GPL-3.0-or-later. All source files now carry
the GPL-3.0 header. Default license in
dcr new/dcr initchanged to"GPL-3.0-or-later". README, FAQ, and CONTRIBUTING.md updated accordingly. get_list_with_profile_and_targetno longer duplicates list values wheninherit = trueand the profile/target value is identical to the base value.
Fixed:
- Multi-language
languagearray (e.g.["c", "c++", "asm"]) no longer dropsc++during internal parsing —.cxx/.cpp/.ccsource files are correctly discovered and compiled. -std=flag is no longer passed to C++ files when onlystandard(C standard) is configured — usescxx_standardwhen available, otherwise skips-std=for C++ sources, avoiding clang errorinvalid argument '-std=c11' not allowed with 'C++'.- Object file collision: source files with the same stem but different extensions
(e.g.
gdt.cxxandgdt.S) no longer overwrite each other. Object filenames now include the original source extension (e.g.gdt.cxx.o,gdt.S.o). - MSVC backend compile step now detects language per source file extension instead
of using the global
languagefield, fixing mixed C/C++ compilation with MSVC. - Assembler
-xflag inunix_cc.rsandgen.rsis now placed before the source file, as required by clang/gcc. {version}variables inbuild.cleanare now correctly substituted.
[0.6.7] - 2026-05-26
Added:
-
build.kind = "efi"— UEFI PE32+ executable support. Links with-shared -nostdlib -Wl,-dll -Wl,--subsystem,10, output viaefi_path()with.efiextension, rejected bydcr run. -
build.kind = "elf"— bare-metal ELF executable support. Useself_path()output path, rejected bydcr run, no extra linker flags. -
build.filenameandbuild.extensionindcr.toml— complete control over the final artifact name without relying onpackage.name. Example:[build] filename = "KERNEL" extension = "EFI"Produces
KERNEL.EFI(works forbin,staticlib, andsharedlib). -
Automatic injection of
--target=<build.target>into compiler flags whenbuild.targetis set indcr.toml. This greatly simplifies clang-based cross-compilation (especially for bare-metal targets likeaarch64-none-elf). -
Bare-metal targets (containing
none,-elf,eabi,baremetal) no longer receive DCR's internal default flags (-g,-Wall,-Wextra,-fno-omit-frame-pointer,-DDCR_DEBUG, etc.). Prevents unwanted sections (.comment, debug info, etc.) that break custom linker scripts wheninherit = true. -
build.ldscriptindcr.toml— linker script path passed as-T <path>to the linker. Essential for bare-metal/embedded/freestanding targets. -
dcr build --verbose— prints compiler/linker command lines (also works withDCR_DEBUGenv var). -
dcr add <name>without a source argument — if a registry is configured, DCR looks up the package by name and adds it as a version dependency.
Fixed:
build.targetdeclared indcr.tomlis now correctly used as the default target even when--targetis not passed on the command line (previously the host target was always forced for config resolution).dcr runwith--targetorbuild.targetnow correctly finds the binary in the arch-specific target directory.dcr runchecks profile-specificbuild.{profile}.kindbefore rejecting library builds (previously only checkedbuild.kind).dcr cleannow readsbuild.targetfromdcr.tomlwhen no--targetflag is given.- Linux: target directory is now consistent —
target/<arch>-unknown-linux-gnu/<profile>/(no staletarget/<profile>/). dcr.lockis now populated with all resolved dependencies (registry, path, git) instead of being always empty.- Git dependencies are now properly recognized and recorded in
dcr.lock. is_registry_depcorrectly identifies version-based registry dependency tables ({ version = "..." }) and rejects tables with unknown keys.dcr testaccepts--debug/--releaseflags (defaults todebugprofile instead of alwaysrelease).- Build fingerprint cache (
build_cache_path) now includestarget_dir— different targets no longer share a single cache entry. object_pathno longer hardcodes thesrc/prefix — works correctly with custombuild.roots(e.g.roots = ["lib"]).dcr updatenow generates.execandidates for all Windows targets, not justx86_64-pc-windows-msvc.- Compiler existence is verified before starting the build (clear error if compiler is not found in PATH).
- Consolidated duplicate
OUTPUT_MUTEXdefinitions — MSVC backend now uses the shared mutex fromcommon.rs. - Registry cache root directory is created if missing (prevents cryptic errors when
~/.dcr/does not exist).
Changed:
openssldependency is now conditional (cfg(not(windows))) — no longer pulled in on Windows, fixing Windows CI builds that lack PerlLocale::Maketext::Simple. On Linux (including musl cross-compilation) the vendored OpenSSL build is unchanged.
[0.6.6] - 2026-05-18
Fixed:
- Path dependencies now work correctly:
dcr addstores them as{ path = "./..." }tables,is_registry_depproperly distinguishes registry strings from path/git strings, anddeps/mod.rsresolves both table-form and legacy string-form path dependencies - Registry dependency paths no longer hardcoded to
project_root/dcr-index; now usepackage_root_from_registry_info()which resolves relative to the registry cache root (~/.dcr/) - Registry dependencies are now actually built:
build_project_at()is called wheninclude_dirorlib_diris missing
Added:
SIGINT/Ctrl+Chandler viactrlccrate —dcr buildnow checksBUILD_INTERRUPTEDflag at key points and aborts cleanlyutils/build.rs— extracted shared utilities:parse_version_info,normalize_target_os,resolve_compiler,primary_language,resolve_pkg_config_flagsand config helpers. Eliminates code duplication betweencli/build.rs,cli/run.rs,cli/clean.rs,cli/gen.rsutils/fs.rs::with_dir— extracted common directory-scoped executionrun_command_sync_outputinbuilder/common.rswith globalOUTPUT_MUTEX— synchronized compiler output across all backends (unix_cc, gas, nasm, msvc)- New helper functions in
deps/register.rs:get_registry_cache_root,package_root_from_registry_info,registry_include_dir,registry_lib_dir,path_from_string_dep - Unit tests for
register.rs(is_registry_dep,package_root_from_registry_info),deps/mod.rs(path_dep_path,push_default_lib_dirs),utils/build.rs(normalize_target_os,parse_version_info) dcr treecommand — visual dependency tree viewer (similar tocargo tree)
Removed:
- Removed unused dependencies
indicatifandconsolefromCargo.toml
[0.6.5] - 2026-05-13
Added:
- New dependency registry system
- Package type support (
lib,app,none) indcr.toml - Library packaging functionality: automatically generates
includeandlibdirectories intarget/forlibtype projects - Expanded CI build targets:
- Linux:
aarch64-unknown-linux-gnu,x86_64-unknown-linux-musl,aarch64-unknown-linux-musl - Windows:
aarch64-pc-windows-msvc,x86_64-pc-windows-gnu,aarch64-pc-windows-gnullvm
- Linux:
Changed:
src/core/deps/modular architecture overhaul- Native platform pathing defaults for Linux (now dynamic architecture detection)
- Improved
runcommand output handling
[0.6.0] - 2026-05-12
Added:
- Full Git dependency support in
dcr.toml- Support for
git,branch,tag, andrevfields - Automatic cloning and checkout via
git2 - Dependencies are stored in
target/<profile>/deps/git/
- Support for
- New
dcr addcommand for easy dependency management- Short syntax:
github:user/repo,gitlab:user/repo,path:/to/lib - Automatic GitHub resolution for
git:user/repo
- Short syntax:
- Visual feedback for dependency fetching with in-place status updates ("Fetching" → "Fetched")
- Modular dependency management architecture in
src/core/deps/
[0.5.1] - 2026-04-12
Fixed:
- Windows compatibility for target-specific config without --target flag
Added:
- Default host target detection for automatic target overrides
- Unit tests for target normalization
Improved:
- Config value lookup optimization
- Documentation for Windows cross-compilation
[0.5.0] - 2026-04-10
Added:
- Full inheritance system for all config sections:
build,toolchain,run,workspace,dependencies- Order:
section.target.profile→section.profile.target→section.target→section.profile→section inherit = falseto disable inheritance completely- Target-specific overrides:
[build.linux],[toolchain.windows],[run.macos], etc.
- Order:
- Cross-compilation support with
--target <triple>- Full target triples and short names (
linux,macos,windows) - Target-specific config sections:
[build.<target>],[toolchain.<target>],[run.<target>]
- Full target triples and short names (
- Workspace and dependencies support target/profile inheritance
- Multiple targets build:
[build.targets]to build for multiple targets simultaneously - Target directory structure:
target/<target>/<profile>/(native or triple) - Updated documentation with cross-compilation guide and Arch Linux examples
[0.4.0] - 2026-04-10
Added:
- Test command:
dcr testanddcr tests- Automatic compilation and linking for tests without manual configuration
dcr test --initcreates test template and header- Test framework with EXPECT/SKIP macros in
dcr_test.h
- Improved test integration: added test CLI module and basic test suite
- Documentation updates for testing functionality
[0.3.0] - 2026-03-18
Added:
dcr gencommand for IDE integration and build tool support-
dcr gen project-info: Output project metadata as JSON
-
dcr gen compile-commands: Generatecompile_commands.jsonfor clangd and clang-tidy
-
dcr gen vscode: Generate VS Code.vscode/integration (launch.json, tasks.json, settings.json)
-
dcr gen clion: Generate JetBrains CLion.idea/integration (run configurations, build targets)
- Full workspace support for all
gensubcommands
[0.2.10] - 2026-03-16
Added:
build.stepsfor pre-build generators (e.g.,moc/uic/rcc)build.pkg_configforpkg-config-driven cflags/ldflags resolution[toolchain]support foruic,moc,rcc- Step command variables (
{uic},{moc},{rcc},{cflags},{stem},{in},{out}) {profile}placeholder support for dependency paths
[0.2.9] - 2026-03-14
Added:
- Header dependency tracking for fine-grained incremental builds (rebuilds when
#includefiles change) - Complete internal rewrite of the builder module: merged duplicate compilation backends
Changed:
cflagsanddefault_flagsno longer incorrectly leak to the linker stage in GCC/Clang- Reduced builder codebase size by over 20% while increasing reliability
- Greatly expanded test suite with 34 new tests covering configuration, CLI errors, and path operations
[0.2.8] - 2026-03-06
Added:
- Workspace support (
[workspace]with deps ordering) clean --allfor workspace members Changed:- Project root discovery for
build/run/clean(searches parent dirs) - Workspace paths are excluded from root source scan
- Build output now uses a Cargo-style
Compiling <name> v<version>line - Build time now reports total time for the whole build stage (workspace included)
- Cache hits are silent (no compile line when nothing is rebuilt)
- Safer build cache: fingerprints include headers and resolved library files
[0.2.7] - 2026-03-03
Added:
- Toolchain overrides via
[toolchain]and env (DCR_*) - ASM
.Spreprocessing via GCC/Clang (-x assembler-with-cpp)
[0.2.6] - 2026-03-01
Added:
sharedlibbuild kind (shared library output)- ASM projects (
build.language = "asm") - NASM and GAS backends
build.platformarchitecture hint for-march//arch- Basic CLI integration tests
[0.2.5] - 2026-02-26
Added:
- Incremental builds (object caching by mtime)
build.kindwithstaticlibsupport- Custom output directory via
build.target
[0.2.4] - 2026-02-22
Added:
- Custom build flags:
build.cflagsandbuild.ldflags - Recursive source discovery inside
src/ - Path dependencies with auto include/lib resolution and
dcr.lockgeneration (experimental) - Add docs/index.md and docs/dcr-toml.md
[0.2.3] - 2026-02-21
Added:
- Modular builders for
gcc,clang,msvc - Platform-specific binary path generation (Linux/macOS/Windows)
Changed:
- Build configuration moved to
[build](language,standard,compiler) dcr.tomlformatting now includes the[build]section- Build uses built-in
debug/releaseflags per compiler - Build compiles all
*.c/*.cppfiles insrc/into a single binary (no incremental build) - Updated
dcr.tomlexamples in documentation
[0.2.2] - 2026-02-20
Changed:
- Reworked
dcr.tomlhandling: added read, validation, and edit throughcore::config newandinituse the new config creation logicbuildandrunnow requiredcr.tomland readcompilerandnamefrom it
[0.2.1] - 2026-02-18
Changed:
- Translated user-facing CLI messages to English
- Unified error and warning output via
utils::log::{error, warn} - Updated
--helpoutput: translated headers and examples to English, usedprintc, and appliedBOLD_*styles - Translated installer script messages in
install.shandinstall.ps1to English
[0.2.0] - 2026-02-17
Changed:
- Project migrated from Python to Rust
- CLI and commands (
new,init,build,run,clean,--help,--version,--update) ported to Rust - Updated
--updateflag: added support for GNU/Linux, Windows, macOS - Updated
README.md,CONTRIBUTING.md, andinstall.shfor the Rust implementation - Added
install.ps1for Windows - Updated
install.shfor GNU/Linux and macOS
Added:
- Added
install.ps1for Windows - Support for GNU/Linux, Windows, macOS (x86_64/arm)
Important:
- Code was ported with neural networks; future versions will include bug fixes and logic changes
[0.1.2] - 2026-02-12
Added:
- Update command
install.shinstall script and README instructions--versionflag
Changed:
- Improved CLI output, added colors, and updated
--help - Updated project run/build handling in
run.py/build.py
[0.1.1] - 2026-02-11
Changed:
- Updated
--help main.pynow runs correctly when executed directly
[0.1.0] - 2026-02-11
First public release.
Added:
- Base commands
new,init,build,run,clean - Build profiles
debugandrelease dcr.tomlandsrc/main.ctemplates