Function cargo_registry::env [] [src]

pub fn env(s: &str) -> String

Convenience function requiring that an environment variable is set.

Ensures that we've initialized the dotenv crate in order to read environment variables from a .env file if present. Don't use this for optionally set environment variables.

Panics

Panics if the environment variable with the name passed in as an argument is not defined in the current environment.