Crates.io | is-railway |
lib.rs | is-railway |
version | 1.0.1 |
source | src |
created_at | 2022-02-22 03:21:25.42576 |
updated_at | 2022-02-22 05:40:57.313597 |
description | Check if the current process is running inside Railway |
homepage | https://github.com/1chiSensei/is-railway/tree/main/packages/rust |
repository | https://github.com/1chiSensei/is-railway |
max_upload_size | |
id | 537105 |
size | 15,944 |
Table of Contents
You can use the following command to install this package.
cargo install is-railway
Or as a dependency.
# Cargo.toml
[dependencies]
is-railway = "1.0.1"
Note: When using as a CLI, it exits with code 0 if running in Railway and 2 if not.
use is_railway::check;
fn main() {
let is_running_on_railway = check();
println!("{}", is_running_on_railway);
}
$ is-railway
Thanks goes to these wonderful people (emoji key):
Tomio 💻 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!