Crate vergen_lib

Source
Expand description

§vergen-lib - Common structs, enums and constants used to support vergen

Modules§

constants
Internal Constants

Structs§

DefaultConfig
The default configuration to use when an issue has occured generating instructions
Emitter
The Emitter will emit cargo instructions (i.e. cargo:rustc-env=NAME=VALUE) base on the configuration you enable.

Enums§

VergenKeybuild or cargo or git or rustc or si
The keys used in the crate::CargoRustcEnvMap

Traits§

AddCustomEntries
This trait should be implemented to allow the vergen emitter to properly emit your custom instructions.
AddEntries
This trait should be implemented to allow the vergen emitter to properly emit instructions for your feature.

Functions§

add_default_map_entry
Add a VergenKey entry as a default string into the CargoRustcEnvMap. The value is either from an environment variable override or crate::constants::VERGEN_IDEMPOTENT_DEFAULT
add_map_entry
Add a VergenKey entry as a string into the CargoRustcEnvMap.
count_idempotent
Count the number of idempotent entries in a CargoRustcEnvMap

Type Aliases§

CargoRerunIfChanged
The vector of strings used to emit cargo:rerun-if-changed=VALUE cargo instructions
CargoRustcEnvMap
The map used to emit cargo:rustc-env=NAME=VALUE cargo instructions
CargoWarning
The vector of strings used to emit cargo:warning=VALUE cargo instructions