forgotten-tones / vcv

Resources for VCV Rack
Creative Commons Zero v1.0 Universal
2 stars 0 forks source link

Explore Rust integration into VCV Modules #10

Closed oubiwann closed 1 year ago

oubiwann commented 1 year ago

There's a nice run-down of the C/C++ integration options for Rust here:

oubiwann commented 1 year ago

cbindgen looks like it might be the best fit:

oubiwann commented 1 year ago

Rust's C support will need to be used in conjunction with cbindgen:

oubiwann commented 1 year ago

Come to think of it, we're probably going to want to pull in some C/C++ stuff that's used by all VCV Rack modules. So more links:

oubiwann commented 1 year ago

This is another option:

oubiwann commented 1 year ago

This was EXTREMELY difficult to try ... basically, the only thing I got working was Rust enums.

Thing is, even if I had gotten it working, I would have had to bail: the size of my modules would have been orders of magnitude larger than any of the modules in the VCV Rack community. Probably a non-starter for most potential users.