Commit Graph
66 Commits
Author SHA1 Message Date
Willem Vanhulle c63c6f1d28 feat: show timeout timer 2026-10-25 12:11:21 +01:00
Willem Vanhulle 9fa6e26d52 ci: release to crates.io and Codeberg through a release-plz pull request 2026-10-25 12:03:40 +01:00
Willem Vanhulle 3a61dc9279 chore: set initial version 0.1.0 2026-10-25 12:03:40 +01:00
Willem Vanhulle 1d098dc931 fix: Ubuntu bugs 2026-10-25 12:03:39 +01:00
Willem Vanhulle 3acc577aac feat: move install commands from xtask into clap subcommands 2026-10-25 12:03:39 +01:00
Willem Vanhulle 4dad85473b fix: deal with scripted initrd changes in nixos unstable 2026-10-25 12:03:39 +01:00
Willem Vanhulle 631315ffe1 fix: yield the console once the display manager starts
Since the boot only counted as complete when the default target was
reached, bootvine kept taking its terminal back from a display manager
that started while another unit still held graphical.target. The
StartupFinished signal was never parsed either, so nothing else ended
the watch.
2026-10-24 20:00:29 +02:00
Willem Vanhulle 58bef783cc fix: handover too early 2026-10-21 15:45:24 +02:00
Willem Vanhulle b126596973 fix: animation timeline loops 2026-10-21 15:45:24 +02:00
Willem Vanhulle 0a29c7c88a feat: animate at 60 fps with timers in hundredths and bars that grow by eighths
Frames tick every 16 ms; password checks and the bus's fallback wake-ups keep
their own 100 ms clock. Running units show hundredths, and a running bar's tip
fills in eighths when the console font has the block glyphs. The scripted boot
demo uses about 2% of a core.
2026-10-21 13:24:35 +02:00
Willem Vanhulle a071b2d065 perf: repaint the whole console only when something disturbed it
Console upkeep still runs every second, but a full repaint follows only when it
had to re-quiet the kernel, take the terminal back or noticed a new font, after
reconnecting, and every five seconds as a safety net.
2026-10-21 13:24:35 +02:00
Willem Vanhulle 552d1170ed perf: rebuild the waiting tree only when the boot changed
The screen keeps the projected tree, milestones and tally and rebuilds them
after boot changes, or every 100 ms so finished units still fade on time.
Release, 200 units, under load: a frame from the cached projection costs
30-40% of a full frame (0.35-0.53 ms against 1.2-1.9 ms).
2026-10-21 13:24:35 +02:00
Willem Vanhulle 092ed41ffb perf: await systemd replies instead of blocking the screen
Calls send their message and await the reply on the registered socket while
the other streams keep drawing; signals that arrive meanwhile are queued for
the next receive. Restoring systemd's status output moves to a guard that
reconnects on exit, so it no longer depends on where the feed was suspended.
Status modes are an enum instead of raw strings.
2026-10-21 13:24:34 +02:00
Willem Vanhulle cb600e0f26 feat: print the version with --version 2026-10-21 12:49:34 +02:00
Willem Vanhulle b7e30ec148 ci: add Woodpecker checks, Cachix config and conventional commit hooks 2026-10-21 12:49:34 +02:00
Willem Vanhulle e0169bf9f2 docs: restructure CONTRIBUTING into setup, testing, tasks, style and design 2026-10-21 12:49:34 +02:00
Willem Vanhulle cfcb9bcaa0 docs: describe the stream loop in CONTRIBUTING 2026-10-21 12:49:34 +02:00
Willem Vanhulle 6b055260eb feat: show the demo passphrase and say when an answer was wrong 2026-10-21 12:49:34 +02:00
Willem Vanhulle d0063c2371 refactor: drive the watch loop with async streams in the Elm style
Every source is a stream of ScreenInput values: the systemd bus (resolved into
BootChange values), keys, frame ticks, full repaints, password requests and
SIGTERM. They are merged with stream::select and folded by one owned
WatchScreen, drawing once per ready batch. The live boot and the scripted demo
share the fold and differ only in their console desk. tokio current-thread
replaces poll(2) and signal-hook. Release binary: 1.74 MB -> 1.86 MB.
2026-10-21 12:49:33 +02:00
Willem Vanhulle ba6e934412 perf: reach each sibling once when nesting waiting units
Searching the graph per sibling pair cost O(n^2) searches under a target with
many dependencies. One reachable set per sibling makes the check a lookup.
Release, 200 units: model projection 2.64 ms -> 0.75 ms, whole frame
3.02 ms -> 1.09 ms.
2026-10-21 12:49:33 +02:00
Willem Vanhulle d3ac753fe2 test: measure the cost of one boot frame
Release build, 200 units at 110x40: whole frame median 3.02 ms, of which the
model projection (waiting forest + milestones) takes 2.64 ms.
2026-10-21 12:49:33 +02:00
Willem Vanhulle 3fbc2a7c78 refactor: drive the spinner by time instead of frame count 2026-10-21 12:49:33 +02:00
Willem Vanhulle a82cca2857 build: add tokio and futures for the stream loop 2026-10-21 12:12:50 +02:00
Willem Vanhulle a6737908e0 build: shrink the release binary from 2.82 MB to 1.74 MB
Fat LTO, one codegen unit, opt-level z, and clap without color or suggestions.
2026-10-21 12:12:50 +02:00
Willem Vanhulle 794ca5a086 refactor: reorganise flake, tests and repo tasks 2026-10-21 12:12:49 +02:00
Willem Vanhulle b93147c7a6 refactor: parse systemd strings with serde_plain 2026-10-21 12:12:49 +02:00
Willem Vanhulle 741e6d13bb refactor: parse systemd state strings at the bus boundary 2026-10-21 12:12:49 +02:00
Willem Vanhulle 9812a85443 build: raise MSRV to 1.91 for const Duration::from_mins 2026-10-21 12:12:49 +02:00
Willem Vanhulle 2191a27b82 refactor: group modules by data-flow stage behind a thin main 2026-10-21 12:12:49 +02:00
Willem Vanhulle f9cc94c633 refactor: derive errors with thiserror 2026-10-21 12:12:49 +02:00
Willem Vanhulle c11a509090 refactor: keep unit timestamps as one Activity 2026-10-21 12:12:49 +02:00
Willem Vanhulle 8d96034574 refactor: decide phase, milestones and quit keys once 2026-10-21 12:12:49 +02:00
Willem Vanhulle 589cc3c82b refactor: split model and view into files under 500 lines 2026-10-21 12:12:49 +02:00
Willem Vanhulle 4c8268a719 refactor: fit and fold the waiting forest in the view 2026-10-21 12:12:48 +02:00
Willem Vanhulle b321fc8ddd refactor: build the waiting graph once with petgraph 2026-10-21 12:12:48 +02:00
Willem Vanhulle 7eafbc2d61 test: share boot fixtures between model and view tests 2026-10-21 12:12:48 +02:00
Willem Vanhulle 832db62f67 refactor: give modules descriptive names 2026-10-21 12:12:48 +02:00
Willem Vanhulle 4315f50745 docs: add metadata for crates.io 2026-10-21 11:27:59 +02:00
Willem Vanhulle 65ccaebc1c docs: improve documentation of settings using a subcommand 2026-10-21 11:27:58 +02:00
Willem Vanhulle 4e943f578a fix: add license 2026-10-21 11:27:58 +02:00
Willem Vanhulle 196356ba0b refactor: build graph first and then render 2026-10-16 11:42:53 +02:00
Willem Vanhulle 2da498c268 fix: passing control to display manager too early 2026-10-16 11:42:52 +02:00
Willem Vanhulle 04219bb58e docs: automate gif generation 2026-10-16 11:42:52 +02:00
Willem Vanhulle a39797cbd2 perf: small improvements 2026-10-16 11:42:52 +02:00
Willem Vanhulle bca6637599 refactor: reduce polling 2026-10-16 11:42:52 +02:00
Willem Vanhulle 589d0b7655 fix: make prompt LUKS more visible 2026-10-16 11:42:52 +02:00
Willem Vanhulle 5e4ce012f4 docs: GIFs and install steps 2026-10-14 21:27:50 +02:00
Willem Vanhulle b0521193a4 test: shutdown demo 2026-10-14 21:27:50 +02:00
Willem Vanhulle 140bbe0e84 fix: shutdown 2026-10-14 19:45:49 +02:00
Willem Vanhulle 2cff6be976 chore: upgrade inputs 2026-10-14 19:02:24 +02:00