Part of #27 · parity v1, slice 10/11 · implemented in #53 (base rust-parity-v1).
Scope
main.rs + lib.rs: read stdin, take now, resolve the cache dir, render, print. panic::set_hook suppresses backtraces and catch_unwind turns any panic into empty output + exit(0), with panic = "unwind" (never abort).
Bash oracle
The never-crash contract (exit 0 on malformed or empty input).
Done when
#53 targets rust-parity-v1, not the default branch, so closing keywords do not fire. Close this issue by hand when #53 merges, and tick the slice in the #27 checklist.
Part of #27 · parity v1, slice 10/11 · implemented in #53 (base
rust-parity-v1).Scope
main.rs+lib.rs: read stdin, takenow, resolve the cache dir, render, print.panic::set_hooksuppresses backtraces andcatch_unwindturns any panic into empty output +exit(0), withpanic = "unwind"(neverabort).Bash oracle
The never-crash contract (
exit 0on malformed or empty input).Done when
cargo fmt --check,cargo clippy --all-targets -- -D warningsandcargo testare greenrust-parity-v1with a merge commit, not squash or rebase, so the stacked slices above stay valid