Use CARGO_PKG_VERSION for plugin versions

Instead of duplicating this. Means that plugin versions only need to be
updated in the Cargo.toml file.
This commit is contained in:
Robbert van der Helm
2022-11-09 15:50:21 +01:00
parent f18675ea64
commit a7e425581f
19 changed files with 20 additions and 20 deletions

View File

@@ -116,7 +116,7 @@ impl Plugin for Gain {
const URL: &'static str = "https://youtu.be/dQw4w9WgXcQ";
const EMAIL: &'static str = "info@example.com";
const VERSION: &'static str = "0.0.1";
const VERSION: &'static str = env!("CARGO_PKG_VERSION");
const DEFAULT_INPUT_CHANNELS: u32 = 2;
const DEFAULT_OUTPUT_CHANNELS: u32 = 2;