#test-framework #fork #unstable #rustc #language #require

rustc-test

A fork of Rust’s test crate that doesn’t require unstable language features

8 releases

Uses old Rust 2015

0.3.1 Nov 30, 2020
0.3.0 Feb 1, 2018
0.2.0 Jul 1, 2017
0.1.5 Jul 1, 2017
0.1.3 Feb 25, 2016

#451 in Testing

Download history 56/week @ 2024-07-22 142/week @ 2024-07-29 105/week @ 2024-08-05 99/week @ 2024-08-12 107/week @ 2024-08-19 130/week @ 2024-08-26 83/week @ 2024-09-02 85/week @ 2024-09-09 90/week @ 2024-09-16 133/week @ 2024-09-23 101/week @ 2024-09-30 63/week @ 2024-10-07 98/week @ 2024-10-14 73/week @ 2024-10-21 127/week @ 2024-10-28 116/week @ 2024-11-04

421 downloads per month
Used in fewer than 11 crates

MIT/Apache

85KB
2K SLoC

Support code for rustc's built in unit-test and micro-benchmarking framework.

Almost all user code will only be interested in Bencher and black_box. All other interactions (such as writing tests and benchmarks themselves) should be done via the #[test] and #[bench] attributes.

See the Testing Chapter of the book for more details.

Dependencies

~2.5MB
~43K SLoC