hadronized / spectra

Rust demoscene engine (currently on hold)
122 stars 6 forks source link

Use cdylib for compiling plugin dynamic libraries #40

Closed Boscop closed 6 years ago

Boscop commented 6 years ago

You'd probably want to use cdylib for compiling plugin dynamic libraries here.

https://doc.rust-lang.org/reference/linkage.html

https://github.com/rust-lang/rfcs/blob/master/text/1510-cdylib.md

We are also using cdylib when building VST plugins in Rust.

The resulting file with cdylib will be much smaller, too.

hadronized commented 6 years ago

Thanks for the idea! What’s the most benefit from using cdylib btw?

Boscop commented 6 years ago

Just that it's the "right thing" to use when you're not linking the lib with more Rust libs as part of a compilation pipeline. But also that the file will be smaller :)

hadronized commented 6 years ago

Superseded by #42.