rici

Crates.iorici
lib.rsrici
version0.1.0
sourcesrc
created_at2024-11-19 15:46:31.554145
updated_at2024-11-19 15:46:31.554145
descriptionRunning in Continuous Integration?
homepage
repositoryhttps://github.com/Le0X8/rici
max_upload_size
id1453474
size3,060
Leonard Lesinski (Le0X8)

documentation

README

RiCI?

Running in Continuous Integration?

What is this?

This is a simple tool to check if the current code is running in a CI environment. It is useful to adjust some behaviors of your code when running in CI.

How to use?

Just install the crate and use the rici function to check if the code is running in a CI environment.

use rici::rici;

fn main() {
    if rici() {
        println!("Running in CI");
    } else {
        println!("Not running in CI");
    }
}

Supported CI environments

  • GitHub Actions

More CI environments will be supported in the future.

Commit count: 3

cargo fmt