Function gst_plugin_version_helper::info
source · pub fn info()
Expand description
Extracts release for GStreamer plugin metadata
Release information is first tried to be extracted from a git repository at the same
place as the Cargo.toml
, or one directory up to allow for Cargo workspaces. If no
git repository is found, we assume this is a release.
-
If extracted from a git repository, sets the
COMMIT_ID
environment variable to the short commit id of the latest commit and theBUILD_REL_DATE
environment variable to the date of the commit. -
If not,
COMMIT_ID
will be set to the stringRELEASE
and theBUILD_REL_DATE
variable will be set to the mtime ofCargo.toml
. -
If neither is possible,
COMMIT_ID
is set to the stringUNKNOWN
andBUILD_REL_DATE
to the current date.