| Crates.io | rici |
| lib.rs | rici |
| version | 0.1.0 |
| created_at | 2024-11-19 15:46:31.554145+00 |
| updated_at | 2024-11-19 15:46:31.554145+00 |
| description | Running in Continuous Integration? |
| homepage | |
| repository | https://github.com/Le0X8/rici |
| max_upload_size | |
| id | 1453474 |
| size | 3,060 |
Running in Continuous Integration?
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.
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");
}
}
More CI environments will be supported in the future.