Crate vergen_pretty
source ·Expand description
vergen-pretty - A pretty printer for vergen environment variables
Because cargo doesn’t pass compile time environment variables to dependencies,
the vergen_pretty_env macro embeds a map of all the possible vergen environment variables with
option_env!. Values not set in by your build.rs are skipped
when pretty-printing the output.
Example
let mut stdout = vec![];
PrettyBuilder::default()
.env(vergen_pretty_env!())
.build()?
.display(&mut stdout)?;
assert!(!stdout.is_empty());See the Pretty documentation for more examples
Features
vergen-pretty has two feature toggles allowing you to customize your output. No features are enabled by default.
You must specifically enable the features you wish to use.
Macros
- Used to initialize
envinPrettyBuilder
Structs
- Header Configuration
- Builder for
Config. - Describes the level of verbosity of a span or event.
- Configure prefix output for
PrettyBuilder - Builder for
Prefix. - Configuration for
vergenenvironment variable pretty printing - Builder for
Pretty. - A stored style that can be applied.
- Configure suffix output for
PrettyBuilder - Builder for
Suffix.
Enums
- Error type for PrettyBuilder
Functions
- Generate a pretty header
Type Definitions
- Environment tree type alias