#rustc #test #testing #language #fork

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

#406 in Testing

Download history 275/week @ 2022-11-28 247/week @ 2022-12-05 311/week @ 2022-12-12 259/week @ 2022-12-19 235/week @ 2022-12-26 151/week @ 2023-01-02 314/week @ 2023-01-09 285/week @ 2023-01-16 513/week @ 2023-01-23 336/week @ 2023-01-30 255/week @ 2023-02-06 338/week @ 2023-02-13 378/week @ 2023-02-20 184/week @ 2023-02-27 196/week @ 2023-03-06 196/week @ 2023-03-13

1,016 downloads per month
Used in fewer than 13 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

~1MB
~22K SLoC