From 6bfcb66bcc012fc8e00816c5984c4bb5c0330ef1 Mon Sep 17 00:00:00 2001 From: Nikita Zavartsev Date: Sun, 7 Jun 2026 19:51:58 +0200 Subject: [PATCH] docs: [tests] change Makefile --- Makefile | 14 ++++++-------- src/main.rs | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 37b96a2..c22833a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# ── Build ───────────────────────────────────────────────────────────────────── +# Build build_arm: RUSTFLAGS="-C target-cpu=native" cargo build --release @@ -6,7 +6,7 @@ build_arm: build_x86: RUSTFLAGS="-C target-cpu=x86-64-v3" cargo build --release --target x86_64-apple-darwin -# ── Run ─────────────────────────────────────────────────────────────────────── +# Run run: view @@ -19,7 +19,7 @@ view-vsync: view-1m: RUSTFLAGS="-C target-cpu=native" cargo run --release -# ── Config ──────────────────────────────────────────────────────────────────── +# Config CONFIG_FILE := $(HOME)/Library/Application\ Support/dem_renderer/config.toml @@ -28,7 +28,7 @@ config: @touch "$(HOME)/Library/Application Support/dem_renderer/config.toml" vim "$(HOME)/Library/Application Support/dem_renderer/config.toml" -# ── Data ────────────────────────────────────────────────────────────────────── +# Data download-tiles: bash download_copernicus_tiles_30m.sh @@ -60,8 +60,7 @@ generate_windows_icon: # brew install imagemagick magick assets/icon_source.png -define icon:auto-resize=256,128,64,48,32,16 assets/icon.ico -# ── Coverage ────────────────────────────────────────────────────────────────── - +# Coverage # One-time local setup: the LLVM instrumentation tools, the coverage driver, # and jq (used to derive the workspace package list below). cargo-llvm-cov is # compiled from crates.io; rustup ships llvm-tools as a component. @@ -96,8 +95,7 @@ test-generate-report: open-report: open coverage-html/html/index.html -# ── Release ─────────────────────────────────────────────────────────────────── - +# Release release: git tag $(VERSION) git push origin $(VERSION) diff --git a/src/main.rs b/src/main.rs index 9a88f2b..9d9223e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -84,7 +84,7 @@ impl ApplicationHandler for App { } impl App { - /// Called after every launcher window_event. If the launcher has set an outcome, + /// Called after every launcher window_event. If the launcher has set an outcome, /// handle it: exit the loop (Exit) or switch to Viewer phase without restarting /// the loop (Start) — the window stays on-screen the whole time. fn try_transition(&mut self, el: &ActiveEventLoop) {