LukasKalbertodt / libtest-mimic

A small test framework to write your own test harness that looks and behaves like the built-in test harness used by `rustc --test`
https://docs.rs/libtest-mimic
Apache License 2.0
95 stars 26 forks source link

Switch from termcolor to anstream #44

Open hanna-kruppe opened 2 days ago

hanna-kruppe commented 2 days ago

Tested by running the simple example with various flags and environment variables, writing to a tty/pipe/file. I have not tested Windows console support but anstream explicitly supports both legacy wincon and the new ANSI capabilities, and I guess people are exercising that support via clap.

I also tested the new MSRV by running these commands (1.64 does not work):

rm Cargo.lock
CARGO_RESOLVER_SOMETHING_LIKE_PRECEDENCE=something-like-rust-version cargo +nightly -Zmsrv-policy check
cargo +1.65 test

Fix #42