is-railway

Crates.iois-railway
lib.rsis-railway
version1.0.1
sourcesrc
created_at2022-02-22 03:21:25.42576
updated_at2022-02-22 05:40:57.313597
descriptionCheck if the current process is running inside Railway
homepagehttps://github.com/1chiSensei/is-railway/tree/main/packages/rust
repositoryhttps://github.com/1chiSensei/is-railway
max_upload_size
id537105
size15,944
Tomio (devtomio)

documentation

README

is-railway

Check if the current process is running inside Railway.

GitHub crates.io

Table of Contents

Features

  • Written in Rust
  • Fast and lightweight
  • Uses no dependencies

Installation

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"

Usage

Note: When using as a CLI, it exits with code 0 if running in Railway and 2 if not.

Basic Usage

use is_railway::check;

fn main() {
    let is_running_on_railway = check();

    println!("{}", is_running_on_railway);
}

CLI

$ is-railway

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Tomio

💻 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Commit count: 10

cargo fmt