gst-plugins-rs/version-helper
Jan Alexander Steffens (heftig) 29d310a2ab
version-helper: Specify chrono's features
Using the default-features implies `oldtime`, which adds a dependency on
the deprecated `time` 0.1 crate.
2021-11-18 19:06:10 +01:00
..
src Update to Rust edition 2021 and minimum supported Rust version to 1.56 2021-10-31 17:40:05 +02:00
Cargo.toml version-helper: Specify chrono's features 2021-11-18 19:06:10 +01:00
LICENSE Drop gst-plugin- prefix in plugin directory name 2020-04-05 19:10:47 +00:00
README.md gst-plugin-version-helper: Fix documentation 2021-07-09 13:38:35 +03:00

gst-plugin-version-helper crates.io docs.rs

Extracts release for GStreamer plugin metadata

See the documentation for details.

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

gst_plugin_version_helper::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")
);

LICENSE

gst-plugin-version-helper is licensed under the MIT license (LICENSE or http://opensource.org/licenses/MIT).

Contribution

Any kinds of contributions are welcome as a pull request.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in gst-plugin-version-helper by you shall be licensed under the MIT license as above, without any additional terms or conditions.