#gstreamer #multimedia #cargo

build gst-plugin-version-helper

build.rs helper function for GStreamer plugin metadata

8 releases

0.7.5 Nov 13, 2022
0.7.4 Oct 24, 2022
0.7.3 Jan 12, 2022
0.7.2 Nov 18, 2021
0.1.0 Jul 7, 2019

#80 in Development tools

Download history 2347/week @ 2022-11-28 3384/week @ 2022-12-05 3119/week @ 2022-12-12 2924/week @ 2022-12-19 1805/week @ 2022-12-26 2162/week @ 2023-01-02 2809/week @ 2023-01-09 3602/week @ 2023-01-16 3223/week @ 2023-01-23 2933/week @ 2023-01-30 3591/week @ 2023-02-06 3732/week @ 2023-02-13 2933/week @ 2023-02-20 3994/week @ 2023-02-27 4203/week @ 2023-03-06 3134/week @ 2023-03-13

14,653 downloads per month
Used in 45 crates

MIT license

8KB
71 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

~0.8–1.4MB
~24K SLoC