1
0
Fork 0

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

4
Cargo.lock generated
View file

@ -1084,7 +1084,7 @@ dependencies = [
[[package]] [[package]]
name = "diopser" name = "diopser"
version = "0.1.0" version = "0.2.0"
dependencies = [ dependencies = [
"nih_plug", "nih_plug",
"nih_plug_vizia", "nih_plug_vizia",
@ -4011,7 +4011,7 @@ dependencies = [
[[package]] [[package]]
name = "spectral_compressor" name = "spectral_compressor"
version = "0.1.0" version = "0.2.0"
dependencies = [ dependencies = [
"nih_plug", "nih_plug",
"nih_plug_vizia", "nih_plug_vizia",

View file

@ -44,7 +44,7 @@ impl Plugin for BuffrGlitch {
const URL: &'static str = "https://github.com/robbert-vdh/nih-plug"; const URL: &'static str = "https://github.com/robbert-vdh/nih-plug";
const EMAIL: &'static str = "mail@robbertvanderhelm.nl"; 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 = 2; const DEFAULT_INPUT_CHANNELS: u32 = 2;
const DEFAULT_OUTPUT_CHANNELS: u32 = 2; const DEFAULT_OUTPUT_CHANNELS: u32 = 2;

View file

@ -300,7 +300,7 @@ impl Plugin for Crisp {
const URL: &'static str = "https://github.com/robbert-vdh/nih-plug"; const URL: &'static str = "https://github.com/robbert-vdh/nih-plug";
const EMAIL: &'static str = "mail@robbertvanderhelm.nl"; 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_INPUT_CHANNELS: u32 = NUM_CHANNELS;
const DEFAULT_OUTPUT_CHANNELS: u32 = NUM_CHANNELS; const DEFAULT_OUTPUT_CHANNELS: u32 = NUM_CHANNELS;

View file

@ -164,7 +164,7 @@ impl Plugin for Crossover {
const URL: &'static str = "https://github.com/robbert-vdh/nih-plug"; const URL: &'static str = "https://github.com/robbert-vdh/nih-plug";
const EMAIL: &'static str = "mail@robbertvanderhelm.nl"; 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_INPUT_CHANNELS: u32 = NUM_CHANNELS;
const DEFAULT_OUTPUT_CHANNELS: u32 = NUM_CHANNELS; const DEFAULT_OUTPUT_CHANNELS: u32 = NUM_CHANNELS;

View file

@ -1,6 +1,6 @@
[package] [package]
name = "diopser" name = "diopser"
version = "0.1.0" version = "0.2.0"
edition = "2021" edition = "2021"
authors = ["Robbert van der Helm <mail@robbertvanderhelm.nl>"] authors = ["Robbert van der Helm <mail@robbertvanderhelm.nl>"]
license = "GPL-3.0-or-later" license = "GPL-3.0-or-later"

View file

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

View file

@ -116,7 +116,7 @@ impl Plugin for Gain {
const URL: &'static str = "https://youtu.be/dQw4w9WgXcQ"; const URL: &'static str = "https://youtu.be/dQw4w9WgXcQ";
const EMAIL: &'static str = "info@example.com"; 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_INPUT_CHANNELS: u32 = 2;
const DEFAULT_OUTPUT_CHANNELS: u32 = 2; const DEFAULT_OUTPUT_CHANNELS: u32 = 2;

View file

@ -76,7 +76,7 @@ impl Plugin for Gain {
const URL: &'static str = "https://youtu.be/dQw4w9WgXcQ"; const URL: &'static str = "https://youtu.be/dQw4w9WgXcQ";
const EMAIL: &'static str = "info@example.com"; 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_INPUT_CHANNELS: u32 = 2;
const DEFAULT_OUTPUT_CHANNELS: u32 = 2; const DEFAULT_OUTPUT_CHANNELS: u32 = 2;

View file

@ -73,7 +73,7 @@ impl Plugin for Gain {
const URL: &'static str = "https://youtu.be/dQw4w9WgXcQ"; const URL: &'static str = "https://youtu.be/dQw4w9WgXcQ";
const EMAIL: &'static str = "info@example.com"; 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_INPUT_CHANNELS: u32 = 2;
const DEFAULT_OUTPUT_CHANNELS: u32 = 2; const DEFAULT_OUTPUT_CHANNELS: u32 = 2;

View file

@ -72,7 +72,7 @@ impl Plugin for Gain {
const URL: &'static str = "https://youtu.be/dQw4w9WgXcQ"; const URL: &'static str = "https://youtu.be/dQw4w9WgXcQ";
const EMAIL: &'static str = "info@example.com"; 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_INPUT_CHANNELS: u32 = 2;
const DEFAULT_OUTPUT_CHANNELS: u32 = 2; const DEFAULT_OUTPUT_CHANNELS: u32 = 2;

View file

@ -24,7 +24,7 @@ impl Plugin for MidiInverter {
const URL: &'static str = "https://youtu.be/dQw4w9WgXcQ"; const URL: &'static str = "https://youtu.be/dQw4w9WgXcQ";
const EMAIL: &'static str = "info@example.com"; 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 = 0; const DEFAULT_INPUT_CHANNELS: u32 = 0;
const DEFAULT_OUTPUT_CHANNELS: u32 = 0; const DEFAULT_OUTPUT_CHANNELS: u32 = 0;

View file

@ -146,7 +146,7 @@ impl Plugin for PolyModSynth {
const URL: &'static str = "https://youtu.be/dQw4w9WgXcQ"; const URL: &'static str = "https://youtu.be/dQw4w9WgXcQ";
const EMAIL: &'static str = "info@example.com"; 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_INPUT_CHANNELS: u32 = 2;
const DEFAULT_OUTPUT_CHANNELS: u32 = 2; const DEFAULT_OUTPUT_CHANNELS: u32 = 2;

View file

@ -103,7 +103,7 @@ impl Plugin for Sine {
const URL: &'static str = "https://youtu.be/dQw4w9WgXcQ"; const URL: &'static str = "https://youtu.be/dQw4w9WgXcQ";
const EMAIL: &'static str = "info@example.com"; 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 = 0; const DEFAULT_INPUT_CHANNELS: u32 = 0;
const DEFAULT_OUTPUT_CHANNELS: u32 = 2; const DEFAULT_OUTPUT_CHANNELS: u32 = 2;

View file

@ -88,7 +88,7 @@ impl Plugin for Stft {
const URL: &'static str = "https://youtu.be/dQw4w9WgXcQ"; const URL: &'static str = "https://youtu.be/dQw4w9WgXcQ";
const EMAIL: &'static str = "info@example.com"; 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_INPUT_CHANNELS: u32 = 2;
const DEFAULT_OUTPUT_CHANNELS: u32 = 2; const DEFAULT_OUTPUT_CHANNELS: u32 = 2;

View file

@ -118,7 +118,7 @@ impl Plugin for LoudnessWarWinner {
const URL: &'static str = "https://github.com/robbert-vdh/nih-plug"; const URL: &'static str = "https://github.com/robbert-vdh/nih-plug";
const EMAIL: &'static str = "mail@robbertvanderhelm.nl"; 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 = 2; const DEFAULT_INPUT_CHANNELS: u32 = 2;
const DEFAULT_OUTPUT_CHANNELS: u32 = 2; const DEFAULT_OUTPUT_CHANNELS: u32 = 2;

View file

@ -163,7 +163,7 @@ impl Plugin for PubertySimulator {
const URL: &'static str = "https://github.com/robbert-vdh/nih-plug"; const URL: &'static str = "https://github.com/robbert-vdh/nih-plug";
const EMAIL: &'static str = "mail@robbertvanderhelm.nl"; 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 = 2; const DEFAULT_INPUT_CHANNELS: u32 = 2;
const DEFAULT_OUTPUT_CHANNELS: u32 = 2; const DEFAULT_OUTPUT_CHANNELS: u32 = 2;

View file

@ -152,7 +152,7 @@ impl Plugin for SafetyLimiter {
const URL: &'static str = "https://github.com/robbert-vdh/nih-plug"; const URL: &'static str = "https://github.com/robbert-vdh/nih-plug";
const EMAIL: &'static str = "mail@robbertvanderhelm.nl"; 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 = 2; const DEFAULT_INPUT_CHANNELS: u32 = 2;
const DEFAULT_OUTPUT_CHANNELS: u32 = 2; const DEFAULT_OUTPUT_CHANNELS: u32 = 2;

View file

@ -1,6 +1,6 @@
[package] [package]
name = "spectral_compressor" name = "spectral_compressor"
version = "0.1.0" version = "0.2.0"
edition = "2021" edition = "2021"
authors = ["Robbert van der Helm <mail@robbertvanderhelm.nl>"] authors = ["Robbert van der Helm <mail@robbertvanderhelm.nl>"]
license = "GPL-3.0-or-later" license = "GPL-3.0-or-later"

View file

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