gst-plugin-version-helper 0.1.0

build.rs helper function for GStreamer plugin metadata
Documentation

Extracts release for GStreamer plugin metadata

See get_info for details.

This function is supposed to be used as follows in the build.rs of a crate that implements a plugin:

extern crate gst_plugin_version_helper;

fn main() {
gst_plugin_version_helper::get_info()
}

Inside lib.rs of the plugin, the information provided by get_info are usable as follows:

gst_plugin_define!(
the_plugin_name,
env!("CARGO_PKG_DESCRIPTION"),
plugin_init,
concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
"The Plugin's License",
env!("CARGO_PKG_NAME"),
env!("CARGO_PKG_NAME"),
env!("CARGO_PKG_REPOSITORY"),
env!("BUILD_REL_DATE")
);