Skip to content

rust: Port the VST3 component and processor host (Refs #5536) - #5546

Merged
zackees merged 5 commits into
masterfrom
port/vst3-abi-host
Nov 24, 2026
Merged

zackees merged 5 commits into
masterfrom
port/vst3-abi-host

Conversation

@zackees

@zackees zackees commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Move VST3 module, factory, component, controller, and processor ownership into obs-vst3. Share the native loader with the separate scanner.
  • Port bus negotiation, planar audio, parameter exchange, latency restarts, and component/controller state streams. Retain the Qt editor and native run loop adapter.
  • Build the original C++ host as a non-installed Linux oracle. Compare it with the Rust host through the same fixture and keep the existing filter integration test.

Validation

  • Five focused Rust contract tests failed on the RED commit and pass with the port.
  • The pinned SDK and Rust bindings agree on every field of the seven checked records. The Rust host and scanner check on the six Linux, Windows, and macOS x86-64/Arm64 targets.
  • The two native hosts match on variable block audio, save/restore, restart, invalid configuration, and reload. Zeroing one Rust output sample made the differential fail.
  • The installed Linux module passed gain and scene-state restore, mono/stereo sidechain and disconnect, and a real LSP editor open/close/reopen. A scratch fixture also matched GUI edit, latency restart, and processor-to-controller feedback on both hosts.

Refs #5536. Based on master after the scanner port #5542 landed. The rebased RED commit is 43a6a7cad, and the GREEN implementation is fc257927b. The replay tree matches the tested ABI preparation tree (dcc402f58985cf5d3075fa75be192380e3df4090). Exact-head package verification follows publication.

Cached build and unity repair

The scanner archive still failed on the repaired scanner branch when its host dependency emitted both Rust and native archive types. With the host library and native archive split, the locked Cargo release build emits the scanner executable and host archive, and Corrosion links both native archives with caching enabled. The unity group now contains includes only, with the host selection guards on the implementation files.

The rebased Linux build passed all four CTests, including scanner parity, the Rust and C++ effect hosts, and variable-block audio parity. All five focused Rust host tests, 76 CI scope and unity tests, and formatting passed.

Closes #5536.

@zackees
zackees marked this pull request as draft November 23, 2026 23:05
@zackees zackees changed the title test(obs-vst3): Characterize host bus, state, and automation contracts (Refs #5536) rust: Port the VST3 component and processor host (Refs #5536) Nov 23, 2026
@zackees
zackees changed the base branch from master to port/vst3-scanner November 23, 2026 23:05
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In progress in obs-rust Multiview Nov 24, 2026
Base automatically changed from port/vst3-scanner to master November 24, 2026 23:01
Ci-Attestation: {"at":1795478479,"gate":"general/all/client-lint","host":"linux-x86_64","key":"28af4248a20948b40b6325a1044d420317961bcf52ad6fbe425236da89e1c086","lane":"client-lint","parents":["b8809aa833fdd203b3769f6131ddda26e53df34f"],"secs":564,"stamp":"a0ec4225fbbe8cbc726c471b52994cab","tree":"cce86f4564515e2d604ed919ee75984a41ccc38b","v":1,"via":"run"}
Ci-Attestation: {"at":1795478483,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"28af4248a20948b40b6325a1044d420317961bcf52ad6fbe425236da89e1c086","lane":"client-lint","parents":["b8809aa833fdd203b3769f6131ddda26e53df34f"],"secs":564,"stamp":"86d8efdee40fc7e622bd584966c69420","tree":"cce86f4564515e2d604ed919ee75984a41ccc38b","v":1,"via":"run"}
Ci-Attestation: {"at":1795478484,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"28af4248a20948b40b6325a1044d420317961bcf52ad6fbe425236da89e1c086","lane":"client-lint","parents":["b8809aa833fdd203b3769f6131ddda26e53df34f"],"secs":564,"stamp":"3e73ffaf0113b08a600f7e857299846d","tree":"cce86f4564515e2d604ed919ee75984a41ccc38b","v":1,"via":"run"}
Ci-Attestation: {"at":1795478482,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"28af4248a20948b40b6325a1044d420317961bcf52ad6fbe425236da89e1c086","lane":"client-lint","parents":["b8809aa833fdd203b3769f6131ddda26e53df34f"],"secs":564,"stamp":"e7a62c279b0db2757a28e7a2fb5244a0","tree":"cce86f4564515e2d604ed919ee75984a41ccc38b","v":1,"via":"run"}
Ci-Attestation: {"at":1795478482,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"28af4248a20948b40b6325a1044d420317961bcf52ad6fbe425236da89e1c086","lane":"client-lint","parents":["b8809aa833fdd203b3769f6131ddda26e53df34f"],"secs":564,"stamp":"c8cb682d22161efbda439a38dc710d46","tree":"cce86f4564515e2d604ed919ee75984a41ccc38b","v":1,"via":"run"}
Ci-Attestation: {"at":1795478480,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"28af4248a20948b40b6325a1044d420317961bcf52ad6fbe425236da89e1c086","lane":"client-lint","parents":["b8809aa833fdd203b3769f6131ddda26e53df34f"],"secs":564,"stamp":"28aff17a14bfacf4545483caa8ab33a2","tree":"cce86f4564515e2d604ed919ee75984a41ccc38b","v":1,"via":"run"}
Ci-Attestation: {"at":1795478481,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"28af4248a20948b40b6325a1044d420317961bcf52ad6fbe425236da89e1c086","lane":"client-lint","parents":["b8809aa833fdd203b3769f6131ddda26e53df34f"],"secs":564,"stamp":"b04b46a08921a36077dbe2752d94e368","tree":"cce86f4564515e2d604ed919ee75984a41ccc38b","v":1,"via":"run"}
Ci-Attestation: {"at":1795478482,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"28af4248a20948b40b6325a1044d420317961bcf52ad6fbe425236da89e1c086","lane":"client-lint","parents":["b8809aa833fdd203b3769f6131ddda26e53df34f"],"secs":564,"stamp":"28427c5019ddf84d55812ba909805f0c","tree":"cce86f4564515e2d604ed919ee75984a41ccc38b","v":1,"via":"run"}
Ci-Attestation: {"at":1795478483,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"28af4248a20948b40b6325a1044d420317961bcf52ad6fbe425236da89e1c086","lane":"client-lint","parents":["b8809aa833fdd203b3769f6131ddda26e53df34f"],"secs":564,"stamp":"55c2fc5cc72f9f25e311855158d9a1fd","tree":"cce86f4564515e2d604ed919ee75984a41ccc38b","v":1,"via":"run"}
Ci-Attestation: {"at":1795478481,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"28af4248a20948b40b6325a1044d420317961bcf52ad6fbe425236da89e1c086","lane":"client-lint","parents":["b8809aa833fdd203b3769f6131ddda26e53df34f"],"secs":564,"stamp":"886002c290c308ec7378db43d8a4e82a","tree":"cce86f4564515e2d604ed919ee75984a41ccc38b","v":1,"via":"run"}
Ci-Attestation: {"at":1795478482,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"28af4248a20948b40b6325a1044d420317961bcf52ad6fbe425236da89e1c086","lane":"client-lint","parents":["b8809aa833fdd203b3769f6131ddda26e53df34f"],"secs":564,"stamp":"08b289f4ff0eb3c8d046704853fd11a1","tree":"cce86f4564515e2d604ed919ee75984a41ccc38b","v":1,"via":"run"}
Ci-Attestation: {"at":1795478480,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"28af4248a20948b40b6325a1044d420317961bcf52ad6fbe425236da89e1c086","lane":"client-lint","parents":["b8809aa833fdd203b3769f6131ddda26e53df34f"],"secs":564,"stamp":"616fd2098b97bc01000c7709ee6e225a","tree":"cce86f4564515e2d604ed919ee75984a41ccc38b","v":1,"via":"run"}
Ci-Attestation: {"at":1795478480,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"28af4248a20948b40b6325a1044d420317961bcf52ad6fbe425236da89e1c086","lane":"client-lint","parents":["b8809aa833fdd203b3769f6131ddda26e53df34f"],"secs":564,"stamp":"47508553720153aa9305e569f9d88df6","tree":"cce86f4564515e2d604ed919ee75984a41ccc38b","v":1,"via":"run"}
…es declarative (Refs #5536)

Ci-Attestation: {"at":1795561654,"gate":"general/all/client-lint","host":"linux-x86_64","key":"b221e68b8bb7fa809bcf40f2a7412128e5870a5e8a8126983f1e692a942da783","lane":"client-lint","parents":["18c4b6ae319d61e3a18e85f04b8f5ee8e1a34414"],"secs":185,"stamp":"1e6691d262880abf5052a949e343900d","tree":"dcc402f58985cf5d3075fa75be192380e3df4090","v":1,"via":"run"}
Ci-Attestation: {"at":1795561655,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"b221e68b8bb7fa809bcf40f2a7412128e5870a5e8a8126983f1e692a942da783","lane":"client-lint","parents":["18c4b6ae319d61e3a18e85f04b8f5ee8e1a34414"],"secs":185,"stamp":"18c09cd2ea7d0f18773d50b6dd110763","tree":"dcc402f58985cf5d3075fa75be192380e3df4090","v":1,"via":"run"}
Ci-Attestation: {"at":1795561655,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"b221e68b8bb7fa809bcf40f2a7412128e5870a5e8a8126983f1e692a942da783","lane":"client-lint","parents":["18c4b6ae319d61e3a18e85f04b8f5ee8e1a34414"],"secs":185,"stamp":"51313d04a146dec6b2f73b6f485e3ed3","tree":"dcc402f58985cf5d3075fa75be192380e3df4090","v":1,"via":"run"}
Ci-Attestation: {"at":1795561655,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"b221e68b8bb7fa809bcf40f2a7412128e5870a5e8a8126983f1e692a942da783","lane":"client-lint","parents":["18c4b6ae319d61e3a18e85f04b8f5ee8e1a34414"],"secs":185,"stamp":"25378e66b38dda69ec08a8ba4489579f","tree":"dcc402f58985cf5d3075fa75be192380e3df4090","v":1,"via":"run"}
Ci-Attestation: {"at":1795561655,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"b221e68b8bb7fa809bcf40f2a7412128e5870a5e8a8126983f1e692a942da783","lane":"client-lint","parents":["18c4b6ae319d61e3a18e85f04b8f5ee8e1a34414"],"secs":185,"stamp":"e7eb89007674da80b138d4be6373d121","tree":"dcc402f58985cf5d3075fa75be192380e3df4090","v":1,"via":"run"}
Ci-Attestation: {"at":1795561655,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"b221e68b8bb7fa809bcf40f2a7412128e5870a5e8a8126983f1e692a942da783","lane":"client-lint","parents":["18c4b6ae319d61e3a18e85f04b8f5ee8e1a34414"],"secs":185,"stamp":"efc452b3c59534a9031d1df2d8b3370a","tree":"dcc402f58985cf5d3075fa75be192380e3df4090","v":1,"via":"run"}
Ci-Attestation: {"at":1795561655,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"b221e68b8bb7fa809bcf40f2a7412128e5870a5e8a8126983f1e692a942da783","lane":"client-lint","parents":["18c4b6ae319d61e3a18e85f04b8f5ee8e1a34414"],"secs":185,"stamp":"29a5bd524735c406371e3d99923cc056","tree":"dcc402f58985cf5d3075fa75be192380e3df4090","v":1,"via":"run"}
Ci-Attestation: {"at":1795561655,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"b221e68b8bb7fa809bcf40f2a7412128e5870a5e8a8126983f1e692a942da783","lane":"client-lint","parents":["18c4b6ae319d61e3a18e85f04b8f5ee8e1a34414"],"secs":185,"stamp":"9ae7026cff2c4cd7c69bb426bf6ef48c","tree":"dcc402f58985cf5d3075fa75be192380e3df4090","v":1,"via":"run"}
Ci-Attestation: {"at":1795561655,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"b221e68b8bb7fa809bcf40f2a7412128e5870a5e8a8126983f1e692a942da783","lane":"client-lint","parents":["18c4b6ae319d61e3a18e85f04b8f5ee8e1a34414"],"secs":185,"stamp":"0ffa403e270782a2fad49d8551ebfec1","tree":"dcc402f58985cf5d3075fa75be192380e3df4090","v":1,"via":"run"}
Ci-Attestation: {"at":1795561655,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"b221e68b8bb7fa809bcf40f2a7412128e5870a5e8a8126983f1e692a942da783","lane":"client-lint","parents":["18c4b6ae319d61e3a18e85f04b8f5ee8e1a34414"],"secs":185,"stamp":"59f8da32c55a8a4daff609779d2fdae6","tree":"dcc402f58985cf5d3075fa75be192380e3df4090","v":1,"via":"run"}
Ci-Attestation: {"at":1795561655,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"b221e68b8bb7fa809bcf40f2a7412128e5870a5e8a8126983f1e692a942da783","lane":"client-lint","parents":["18c4b6ae319d61e3a18e85f04b8f5ee8e1a34414"],"secs":185,"stamp":"bd4cd3b7c44bac18812a610bf59d7c44","tree":"dcc402f58985cf5d3075fa75be192380e3df4090","v":1,"via":"run"}
Ci-Attestation: {"at":1795561654,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"b221e68b8bb7fa809bcf40f2a7412128e5870a5e8a8126983f1e692a942da783","lane":"client-lint","parents":["18c4b6ae319d61e3a18e85f04b8f5ee8e1a34414"],"secs":185,"stamp":"73781e69ae54c382dbe1a05c8187fbe9","tree":"dcc402f58985cf5d3075fa75be192380e3df4090","v":1,"via":"run"}
Ci-Attestation: {"at":1795561655,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"b221e68b8bb7fa809bcf40f2a7412128e5870a5e8a8126983f1e692a942da783","lane":"client-lint","parents":["18c4b6ae319d61e3a18e85f04b8f5ee8e1a34414"],"secs":185,"stamp":"34c0033ca0fca08d0624acda36c7f856","tree":"dcc402f58985cf5d3075fa75be192380e3df4090","v":1,"via":"run"}
@zackees

zackees commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

Published head af6e21a78cabd21de7d2ac65a3736acc5ab0a56c preserves the tested ABI replay tree. Six-target local lint, Clippy, and Dylint passed. Hosted PR CI and exact-head native package verification are running. The downstream filter, editor, and shipping commits also replay cleanly on this head.

@zackees

zackees commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

Exact published head af6e21a passed the installed Linux Debian package probe (verify-only run 45507242935, artifact 14974543161, SHA-256 54f31ea943db3095d86742959b0ee22b36716c2d98168ed769b2df483acf4cbe). Ubuntu 26.04/X11 loaded the same two gain classes exercised against upstream OBS through the public libobs audio graph. The probe exited 0 after gain/state, missing-effect bypass, and native editor close/reopen checks.

@zackees
zackees marked this pull request as ready for review November 24, 2026 23:33
@zackees
zackees added this pull request to the merge queue Nov 24, 2026
Merged via the queue into master with commit 4c10a6b Nov 24, 2026
101 checks passed
@zackees
zackees deleted the port/vst3-abi-host branch November 24, 2026 23:59
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In progress to Done in obs-rust Multiview Nov 25, 2026

This branch was previously deployed

1 inactive deployment
bouf — af6e21a7 Deployed Nov 24, 2026 by zackees via Build linux x86_64 🧱 #194
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

rust: Port the VST3 module, component, and processor host to obs-vst3

1 participant