From c8ef38a99b405d55a2b415b65dd9db572b333f88 Mon Sep 17 00:00:00 2001 From: Dexoron Date: Sun, 7 Jun 2026 21:41:02 +0800 Subject: [PATCH] release: bump version to 0.7.2 and update changelog --- CHANGELOG.md | 26 ++++++++++++++++++++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0487067..44aea70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,31 @@ # Changelog +## [0.7.2] - 2026-06-07 "Исправление Таргетов и Линковки / Target & Linker Fixes" + +### RU + +**Добавлено:** +- Учтён `target_env` в `default_target_triple()` — Linux (gnu/musl) и Windows (msvc/gnu) теперь используют правильное окружение, а не хардкод. + +**Исправлено:** +- **Сборка на macOS Apple Silicon падала с `_main` undefined** — `--target=` теперь передаётся и в ldflags, не только в cflags. `default_target_triple()` на macOS использует `std::env::consts::ARCH` вместо хардкода `x86_64`. +- **Бейджи GitHub Stars и GPL-3.0 не рендерились в README** — блок бейджей переведён на чистый HTML. + +**Изменено:** +- Вычисление таргета по умолчанию вынесено в общую функцию `default_target_triple()` — устранено дублирование в build, run, clean. + +### EN + +**Added:** +- `default_target_triple()` now respects `target_env` — Linux (gnu/musl) and Windows (msvc/gnu) use the correct environment instead of hardcoded values. + +**Fixed:** +- **macOS Apple Silicon builds failed with `_main` undefined** — `--target=` is now passed to ldflags, not just cflags. `default_target_triple()` uses `std::env::consts::ARCH` on macOS instead of hardcoded `x86_64`. +- **GitHub Stars and GPL-3.0 badges not rendering in README** — badge block converted to pure HTML. + +**Changed:** +- Default target resolution extracted into shared `default_target_triple()` — removed duplication across build, run, clean. + ## [0.7.1] - 2026-06-02 "Мультиархитектурное расширение / The Multi-Arch Expansion" ### RU diff --git a/Cargo.lock b/Cargo.lock index 91c07d8..4429d44 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -112,7 +112,7 @@ dependencies = [ [[package]] name = "dcr" -version = "0.7.1" +version = "0.7.2" dependencies = [ "ctrlc", "git2", diff --git a/Cargo.toml b/Cargo.toml index 9a06bcc..85c448e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dcr" -version = "0.7.1" +version = "0.7.2" edition = "2024" build = "build.rs" description = "DCR is a utility for managing C/C++ projects in a Cargo-like style."