#environment #helper #development

is-dev

A simple macro to determine if an environment is a “development” environment. Built because some of us (me) are lazy and don’t feel like copy-pasting the same check for development environments over and over again. ❤️ Ex: #[macro_use] extern crate is_dev; fn test_is_dev() { let e: bool = is_dev!("ENV", "development"); assert!(e); }

1 unstable release

Uses old Rust 2015

0.1.0 Apr 17, 2018

#2488 in Development tools

ISC license

4KB

is-dev-rs

Build Status

A simple macro to determine if an environment is a "development" environment.

Built because some of us (me) are lazy and don't feel like copy-pasting the same check for development environments over and over again.

❤️

Ex:

#[macro_use] extern crate is_dev;

fn test_is_dev() {
    let e: bool = is_dev!("ENV", "development");
    assert!(e);
}

lib.rs:

Build Status

A simple macro to determine if an environment is a "development" environment.

Built because some of us (me) are lazy and don't feel like copy-pasting the same check for development environments over and over again.

❤️

No runtime deps