3 releases

Uses old Rust 2015

0.1.2 Apr 30, 2015
0.1.1 Apr 26, 2015
0.1.0 Apr 26, 2015
Download history 70/week @ 2022-01-25 59/week @ 2022-02-01 59/week @ 2022-02-08 51/week @ 2022-02-15 211/week @ 2022-02-22 163/week @ 2022-03-01 43/week @ 2022-03-08 63/week @ 2022-03-15 64/week @ 2022-03-22 57/week @ 2022-03-29 58/week @ 2022-04-05 65/week @ 2022-04-12 89/week @ 2022-04-19 109/week @ 2022-04-26 96/week @ 2022-05-03 91/week @ 2022-05-10

390 downloads per month
Used in less than 9 crates

Apache-2.0

5KB

Timebomb

Build Status

This is a simple timeout mechanism for Rust that is intended for use with unit tests.

extern crate timebomb;
use timebomb::timeout_ms;

#[test]
fn something_bad() {
	// This will timeout in 1 second if the test did not pass
	timeout_ms(|| {
		// oops infinite loop
		loop {}
	}, 1000);
}

Dependencies

~655KB