Freelancers using CargoFreelancers using Cargo
AI/ML engineer who builds custom models, not wrappers.
New to Contra
AI/ML engineer who builds custom models, not wrappers.
Cover image for I just launched cargo-vouch, an
I just launched cargo-vouch, an open-source Rust tool that proves a function can't panic. No tests to write, no annotations to add. Point it at a .rs file, and it builds a Kani proof harness for every function, then checks every input in bounds. Each function comes back with one of four verdicts: 🔴 BUG, with the exact input that triggers the panic 🟡 UNGUARDED, safe except at type extremes like i32::MAX 🟢 VERIFIED, provably panic-free ⏳ INCONCLUSIVE, when it cannot decide Why I built it: AI writes Rust that passes cargo test, then panics on an edge input nobody tried. For example, numbers.iter().sum() looks fine until something hands it [i32::MAX, 1]. I ran it on 11 functions GPT-4o wrote and graded. GPT-4o's own grading got 4 of them wrong: it passed three that overflowed and failed one that was fine. cargo-vouch called all four correctly, with the triggering input for each real panic. The honest limit: it is built for loop-light code. Parsers and loop-heavy functions return INCONCLUSIVE, never a false pass. I would rather say that than oversell it. If you write Rust, I would like your feedback. Repo - https://lnkd.in/eHirVFQq (https://lnkd.in/eHirVFQq)cargo install cargo-vouch #rustlang (https://www.linkedin.com/search/results/all/?keywords=%23rustlang&origin=HASH_TAG_FROM_FEED) #opensource (https://www.linkedin.com/search/results/all/?keywords=%23opensource&origin=HASH_TAG_FROM_FEED) #formalverification (https://www.linkedin.com/search/results/all/?keywords=%23formalverification&origin=HASH_TAG_FROM_FEED)
0
5