Macro str_from_env
macro_rules! str_from_env {
($env_var:literal, $doc:literal $(,)?) => { ... };
}Expand description
Reads a value at compile time from the given environment variable.
The $doc parameter allows to provide a documentation string for this tunable.
It should complete the following sentence: “This environment variable provides the $doc”.
§Errors
- Produces a compile-time error if the environment variable is not found.
- Produces a compile-time error when
option_env!does.