From ed5e0f673b93e0510cf827322902a3aa81722d3c Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 10 Feb 2022 19:59:36 +0100 Subject: [PATCH] Use an updated vst3-sys for cross compilation --- Cargo.lock | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++--- Cargo.toml | 2 ++ 2 files changed, 91 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 05e8b880..8b681396 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -62,7 +62,7 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "baseview" version = "0.1.0" -source = "git+https://github.com/robbert-vdh/baseview.git?branch=feature/mouse-event-modifiers#4bfe91040abaa72e646931ca4447fcc7760b4178" +source = "git+https://github.com/robbert-vdh/baseview.git?branch=feature/mouse-event-modifiers#a8ef4ddc1c53e48a2c2ca7379f89e6573a250407" dependencies = [ "cocoa", "core-foundation", @@ -359,6 +359,9 @@ dependencies = [ "atomic_float", "nih_plug", "nih_plug_egui", + "rand", + "rand_distr", + "rand_pcg", ] [[package]] @@ -441,6 +444,12 @@ dependencies = [ "winapi", ] +[[package]] +name = "libm" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33a33a362ce288760ec6a508b94caaec573ae7d3bbbd91b87aa0bad4456839db" + [[package]] name = "lock_api" version = "0.4.6" @@ -568,6 +577,16 @@ dependencies = [ "version_check", ] +[[package]] +name = "num-traits" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290" +dependencies = [ + "autocfg", + "libm", +] + [[package]] name = "objc" version = "0.2.7" @@ -641,6 +660,12 @@ version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "58893f751c9b0412871a09abd62ecd2a00298c6c83befa223ef98c52aef40cbe" +[[package]] +name = "ppv-lite86" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" + [[package]] name = "proc-macro2" version = "1.0.36" @@ -668,6 +693,65 @@ dependencies = [ "proc-macro2", ] +[[package]] +name = "rand" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8" +dependencies = [ + "libc", + "rand_chacha", + "rand_core", + "rand_hc", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" +dependencies = [ + "getrandom", +] + +[[package]] +name = "rand_distr" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32cb0b9bc82b0a0876c2dd994a7e7a2683d3e7390ca40e6886785ef0c7e3ee31" +dependencies = [ + "num-traits", + "rand", +] + +[[package]] +name = "rand_hc" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7" +dependencies = [ + "rand_core", +] + +[[package]] +name = "rand_pcg" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59cad018caf63deb318e5a4586d99a24424a364f40f1e5778c29aca23f4fc73e" +dependencies = [ + "rand_core", +] + [[package]] name = "raw-window-handle" version = "0.4.2" @@ -817,7 +901,7 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "vst3-com" version = "0.1.0" -source = "git+https://github.com/robbert-vdh/vst3-sys.git?branch=fix/atomic-reference-count#a8aaaa842322570fa241456a45be2fd11c3597a9" +source = "git+https://github.com/robbert-vdh/vst3-sys.git?branch=fix/atomic-reference-count#8e651b4151ff902adf969ae0837e84ab7a8282d0" dependencies = [ "vst3-com-macros", ] @@ -825,7 +909,7 @@ dependencies = [ [[package]] name = "vst3-com-macros" version = "0.2.0" -source = "git+https://github.com/robbert-vdh/vst3-sys.git?branch=fix/atomic-reference-count#a8aaaa842322570fa241456a45be2fd11c3597a9" +source = "git+https://github.com/robbert-vdh/vst3-sys.git?branch=fix/atomic-reference-count#8e651b4151ff902adf969ae0837e84ab7a8282d0" dependencies = [ "proc-macro2", "quote", @@ -836,7 +920,7 @@ dependencies = [ [[package]] name = "vst3-com-macros-support" version = "0.2.0" -source = "git+https://github.com/robbert-vdh/vst3-sys.git?branch=fix/atomic-reference-count#a8aaaa842322570fa241456a45be2fd11c3597a9" +source = "git+https://github.com/robbert-vdh/vst3-sys.git?branch=fix/atomic-reference-count#8e651b4151ff902adf969ae0837e84ab7a8282d0" dependencies = [ "proc-macro2", "quote", @@ -846,7 +930,7 @@ dependencies = [ [[package]] name = "vst3-sys" version = "0.1.0" -source = "git+https://github.com/robbert-vdh/vst3-sys.git?branch=fix/atomic-reference-count#a8aaaa842322570fa241456a45be2fd11c3597a9" +source = "git+https://github.com/robbert-vdh/vst3-sys.git?branch=fix/atomic-reference-count#8e651b4151ff902adf969ae0837e84ab7a8282d0" dependencies = [ "vst3-com", ] diff --git a/Cargo.toml b/Cargo.toml index 935ecbb2..5da4b90e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,6 +31,8 @@ parking_lot = "0.12" raw-window-handle = "0.4" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" +# This contains a number of fixes for the reference counting, cross compilation +# support, and an incorrect return type vst3-sys = { git = "https://github.com/robbert-vdh/vst3-sys.git", branch = "fix/atomic-reference-count" } widestring = "1.0.0-beta.1"