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 the BUILD_REL_DATE environment variable to the date of the commit.

  • If not, COMMIT_ID will be set to the string RELEASE and the BUILD_REL_DATE variable will be set to the package.metadata.gstreamer.release_date key of Cargo.toml, if it exists.

  • If not, COMMIT_ID will be set to the string RELEASE and the BUILD_REL_DATE variable will be set to the mtime of Cargo.toml. Note that the crates created by cargo package and cargo publish have bogus mtimes for all files and won’t be used.

  • If neither is possible, COMMIT_ID is set to the string UNKNOWN and BUILD_REL_DATE to the current date.