is_ci 1.2.0

Super lightweight CI environment checker. Just tells you if you're in CI or not without much fuss.
Documentation
1
2
3
4
5
6
use is_ci::uncached;

pub fn main() {
    let code = if uncached() { 0 } else { 1 };
    std::process::exit(code);
}