Skip to content

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

License

Notifications You must be signed in to change notification settings

quinnjr/is-dev-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
}

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages