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_IDenvironment variable to the short commit id of the latest commit and theBUILD_REL_DATEenvironment variable to the date of the commit. -
If not,
COMMIT_IDwill be set to the stringRELEASEand theBUILD_REL_DATEvariable will be set to thepackage.metadata.gstreamer.release_datekey ofCargo.toml, if it exists. -
If not,
COMMIT_IDwill be set to the stringRELEASEand theBUILD_REL_DATEvariable will be set to the mtime ofCargo.toml. Note that the crates created bycargo packageandcargo publishhave bogus mtimes for all files and won’t be used. -
If neither is possible,
COMMIT_IDis set to the stringUNKNOWNandBUILD_REL_DATEto the current date.