vergen_lib

Function add_map_entry

Source
pub fn add_map_entry<T>(key: VergenKey, value: T, map: &mut CargoRustcEnvMap)
where T: Into<String>,
Expand description

Add a VergenKey entry as a string into the CargoRustcEnvMap.

ยงExample

let mut map: CargoRustcEnvMap = BTreeMap::new();
add_map_entry(VergenKey::BuildDate, "test", &mut map);
assert_eq!(1, map.len());