#env-var #variables #environment #compile-time #explorer #explore #prints

macro env_vars_explorer

Enumerates and prints environment variables available at compile-time

1 unstable release

0.1.0 Jun 13, 2023

#2102 in Procedural macros

MIT license

3KB

env_vars_explorer

This crate provides a simple macro that can be used to explore what environment variables are available at compile-time in your rust project.

Simply run env_vars_explorer::explore! anywhere and all environment variables will be printed from the proc macro. This is useful to discover what environment variables are available at compile-time v.s. at runtime.

env_vars_explorer::explore!();

lib.rs:

env_vars_explorer

This crate provides a simple macro that can be used to explore what environment variables are available at compile-time in your rust project.

Simply run env_vars_explorer::explore! anywhere and all environment variables will be printed from the proc macro. This is useful to discover what environment variables are available at compile-time v.s. at runtime.

env_vars_explorer::explore!();

No runtime deps