A simple way to mock std::time::Instant for testing time-dependent code.
# Cargo.toml
[dependencies]
mock_instant = "0.6.1"No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Set and query mock time
Use #[serial_test::serial] or run tests with --test-threads=1
No dependency data recorded yet.