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

@@ -164,7 +164,7 @@ impl Plugin for Crossover {
const URL: &'static str = "https://github.com/robbert-vdh/nih-plug";
const EMAIL: &'static str = "mail@robbertvanderhelm.nl";
const VERSION: &'static str = "0.1.0";
const VERSION: &'static str = env!("CARGO_PKG_VERSION");
const DEFAULT_INPUT_CHANNELS: u32 = NUM_CHANNELS;
const DEFAULT_OUTPUT_CHANNELS: u32 = NUM_CHANNELS;