About
## Challenges we ran into
Rust and Go print numbers differently — and it breaks CI in ways nobody would debug correctly.
Our plan said the two languages produce identical floating-point output, so we could copy the digits straight across. To be sure, we built a harness comparing our output against real Go across roughly a million values.
It didn't match. About 1 in 500 values came out different — things like 2218621873039756.25, where Go prints …6.2 and Rust prints …6.3.
That's a nasty class of bug. It doesn't crash. It produces a diff that's off by one digit, fails somebody's release gate, and sends them hunting for an API change that never happened.
The obvious fix made it worse. Rounding more carefully corrected those cases and broke a different set. We shipped it, measured it, and reverted it.
The real answer was in Go's own source: it uses an algorithm called Dragonbox, which handles exact halfway values with a specific rule — round to even, except for powers of two, which round up, with one hardcoded exception for a single value. We implemented exactly that rule using integer math only, so there's no floating point in the fix that could drift.
Result: zero mismatches across 3.4 million values, verified three times. And the correction fires exactly as often as the old code was wrong — so we know we fixed the bug instead of papering over it.
The lesson we kept: don't trust a plan that says two systems agree. Measure it.
## The problem it solves
eams check their OpenAPI specs for breaking changes before shipping. Today that means running oasdiff — a standalone Go binary. It works well, but it only works one way: as a separate process you install and shell out to.
oasdiff-rust makes those same checks something you can build into your own tools.
What that unlocks:
- Catch breaks earlier. Run the checks inside your editor, your linter, or your API gateway instead of waiting for CI to tell you. - Drop-in swap. Same rule IDs, same JSON, same exit codes — byte for byte. Point your pipeline at it and nothing downstream changes. No golden files to regenerate, no dashboards to fix. - One less thing to install. A single static binary, or a library you call directly. No second runtime to ship in your container. - Safer by default. An unknown rule can't crash it — that case is impossible by design rather than a fatal error. No unsafe code anywhere. - Runs where Go can't. Embeddable in Rust services, CLI tools, and WASM sandboxes.
If you already trust oasdiff, this gives you the same answers in more places, faster.
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.






