Show HN: a Rust crate to mock concrete type without using trait
By xtsoftwarelabs · 2026-09-23 · 1 points · 0 comments
https://github.com/XTSoftwareLabs/shimforge
The approach in this crate is you don't change any thing in your production code but directly mock functions such as std, reqwest and etc. // Production code use std::fs; pub fn claim_slot() -> Result<(), String> { fs::create_dir_all("/var/run/dispatcher…
Open the full discussion on BetterNews