Commit Graph

19 Commits

Author SHA1 Message Date
ddidderr 6e68129247 build: add justfile for common dev and build tasks
Introduce a justfile to standardize the project's everyday commands so
contributors no longer need to remember the exact cargo invocations and
flags. Until now these commands lived only in shell history and memory,
which made the non-obvious ones (the LTO profile, the native install
incantation) easy to get wrong.

Recipes provided:
- dev (default): cargo run with passthrough args
- fmt: nightly rustfmt + tombi for TOML + just --fmt, mirroring the
  formatting already applied in recent commits (e.g. fc851e8)
- clippy: lint the whole workspace, all targets
- build / build-release / build-production: the three build tiers, with
  build-production using the release-lto profile defined in Cargo.toml
- install: install targeting the native CPU and x86_64-unknown-linux-gnu
  via the release-lto profile, force-overwriting any existing binary
- clean: cargo clean

The fmt and install recipes depend on external tools (fd, tombi, nightly
toolchain); these are assumed present in the dev environment and are not
auto-installed here.

Test Plan:
- `just --list` lists all recipes without parse errors
- `just --unstable --fmt --check` reports the file is already formatted
- `just build` and `just clippy` succeed against the current tree
2026-05-31 12:17:17 +02:00
ddidderr 5d5e1b3df3 [release] linkspeed v0.1.4 v0.1.4 2026-05-31 11:58:13 +02:00
ddidderr 37d6b04dba [deps] cargo update
Updating indenter  v0.3.3  -> v0.3.4
Updating once_cell v1.21.3 -> v1.21.4
2026-05-31 11:58:10 +02:00
ddidderr fc851e8408 fmt: Cargo.toml with tombi 2026-05-31 11:56:02 +02:00
ddidderr ad0a24201c [release] linkspeed v0.1.3 v0.1.3 2025-03-29 20:35:03 +01:00
ddidderr f3f1cb46c4 [deps] cargo update
Updating once_cell v1.21.1 -> v1.21.3
2025-03-29 20:35:02 +01:00
ddidderr c9180033d1 [release] linkspeed v0.1.2 v0.1.2 2025-03-14 01:09:28 +01:00
ddidderr a03a679f71 [code] better error handling and show available netdevs on some errors 2025-03-14 01:09:03 +01:00
ddidderr 3963bce64e [release] linkspeed v0.1.1 v0.1.1 2025-03-13 23:23:51 +01:00
ddidderr eb95d9593a [feat] config file. also: extreme over-engineering 2025-03-13 23:23:36 +01:00
ddidderr f23a68e544 [rustfmt] add rustfmt.toml 2025-03-13 23:09:26 +01:00
ddidderr 8f4542159f [build] profile release and release-lto 2025-03-13 23:09:09 +01:00
ddidderr 40bcfe4a13 [clippy] add lints 2025-03-13 23:08:32 +01:00
ddidderr 816e3110bd [deps] add eyre 2025-03-13 23:08:16 +01:00
ddidderr b715bcb55d [rust] edition 2024 v1.0.0 2025-02-20 18:28:50 +01:00
ddidderr 363ae4729e [code] impl Iterator for LinkSpeed and use it 2025-02-10 21:15:32 +01:00
ddidderr 2639919f84 [build] remove edition 2024 stuff 2025-02-10 21:15:31 +01:00
ddidderr b8694bb07a [build] tweak profile release 2024-12-04 18:24:32 +01:00
ddidderr 83357007b0 initial commit (ugly but works): linkspeed <netdev name> 2024-12-04 18:24:02 +01:00