11 releases
0.3.6 | Nov 26, 2024 |
---|---|
0.3.4 | Jul 9, 2024 |
0.3.3 | Feb 3, 2024 |
0.3.0 | May 24, 2023 |
0.1.1 | Jan 10, 2023 |
#770 in Build Utils
2,297 downloads per month
Used in 2 crates
80KB
2K
SLoC
vergen-pretty
A pretty printer for vergen
generated environment variables
lib.rs
:
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.
Feature | Enables |
---|---|
color | Colorize output, allow configuration of coloring via console |
header | Generate pretty printed header output based on the given Config |
trace | Enable support for tracing output |
Dependencies
~1.2–9.5MB
~88K SLoC