#Rust
5 posts · All tags
-
High Coverage, Still Missing Tests? Using the CRAP Metric to Find the Functions That Need Them Most
With mostly agent-written code, high line coverage couldn't show whether the gaps sat in the most complex functions; a CRAP threshold of 8 cleared 200-plus offending functions and turned up 72 issues to fix.
Engineering ·
2026.10.03 -
Catching Dependency Cycles in Rust and TypeScript: A Homemade Module Scanner With Layering Rules in CI
My 18 backend packages had several dependency cycles tracked only by memory, so I wrote a compile-free scanner for a clickable architecture map and CI layering rules, then cleared 23 violations in one day.
Engineering ·
2026.10.03 -
Speeding Up Rust and Next.js CI on GitHub Actions: From 11.5 Minutes to 1.5 on a 2 vCPU Runner
After moving the backend to Rust, the PR backend job went from 11.5 minutes to 1.5 and frontend checks from 81 seconds to 30, mostly through test databases, bcrypt, and caches that broke silently.
Engineering ·
2026.10.01 -
Code Review After Porting Java to Rust: 15 Findings, 6 Bugs Carried Over From Java
Four lessons from a full code review after a Java-to-Rust port: transaction semantics copied from a misleading annotation, sqlx returning Ok on failed commits, disconnects killing handlers, and suspension sharing the lending flag.
Engineering ·
2026.09.30 -
Migrating From Java Spring Boot to Rust: Memory From 734 MiB to 32 MiB in One Cutover
My lending platform's backend went from Java 21 to Rust in one cutover with contracts and data intact: memory 734 MiB to 32 MiB, startup 30 s to about 0.03 s, API latency about the same.
Engineering ·
2026.09.29