11 releases

0.8.2 Mar 21, 2024
0.8.0 Sep 29, 2023
0.7.5 Nov 13, 2022
0.7.3 Jan 12, 2022
0.1.0 Jul 7, 2019

#238 in Development tools

Download history 3368/week @ 2024-03-30 3116/week @ 2024-04-06 4183/week @ 2024-04-13 2880/week @ 2024-04-20 2957/week @ 2024-04-27 3351/week @ 2024-05-04 2611/week @ 2024-05-11 3170/week @ 2024-05-18 3138/week @ 2024-05-25 2718/week @ 2024-06-01 2928/week @ 2024-06-08 3258/week @ 2024-06-15 2908/week @ 2024-06-22 2153/week @ 2024-06-29 2728/week @ 2024-07-06 2438/week @ 2024-07-13

10,762 downloads per month
Used in 54 crates (51 directly)

MIT license

10KB
96 lines

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 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.

Dependencies

~3–9MB
~66K SLoC