From f44cfc61906baf6834e9ef050efce791e50e34b1 Mon Sep 17 00:00:00 2001 From: ddidderr Date: Wed, 10 Jun 2026 21:18:10 +0200 Subject: [PATCH] build: add local just workflow Add a justfile for the common fcry developer commands. The run recipe is variadic and uses just positional arguments so program flags are forwarded through cargo run without needing a second separator. Keep the default release profile debuggable and checked, then move the stripped, LTO-enabled artifact settings into the production profile. This keeps day-to-day release builds easier to inspect while preserving an explicit production build recipe for optimized distributable binaries. The clippy recipe uses workspace, all-target, all-feature coverage and denies warnings so the task runner matches the stricter local verification path. Test Plan: - cargo clippy - cargo clippy --benches - cargo clippy --tests - cargo +nightly fmt - just --fmt --check - just run --help - just clippy - git diff --cached --check Refs: none --- Cargo.toml | 14 +++++++++++++- justfile | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 justfile diff --git a/Cargo.toml b/Cargo.toml index e7a6334..33c0e94 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,8 +36,20 @@ windows-sys = { } [profile.release] +debug = true +strip = false +debug-assertions = true +overflow-checks = true +lto = false +panic = "unwind" +incremental = true + +[profile.production] +inherits = "release" debug = false strip = true +debug-assertions = false +overflow-checks = false lto = true -panic = "unwind" +incremental = false codegen-units = 1 diff --git a/justfile b/justfile new file mode 100644 index 0000000..ecf833d --- /dev/null +++ b/justfile @@ -0,0 +1,33 @@ +set positional-arguments + +run *args: + cargo run -- "$@" + +build: + cargo build + +build-release: + cargo build --release + +build-production: + cargo build --profile production + +fmt: + cargo +nightly fmt + tombi format + just --fmt + +_fix: + cargo fix + cargo clippy --fix + +fix: _fix fmt + +clippy: + cargo clippy --workspace --all-targets --all-features -- -D warnings + +test: + cargo test --workspace + +clean: + cargo clean