Skip to main content

emit_version_metadata

Function emit_version_metadata 

Source
pub fn emit_version_metadata() -> Result<(), Box<dyn Error>>
Expand description

Emits the version metadata of the binary being built as cargo:rustc-env instructions.

Call it from the binary’s build script. The package version, features and profile are the binary’s own.